Debian Codegraph @

doc/tutorial/index.rst

raw
1 .. _tutorial:
2
3 Build your first project
4 ========================
5
6 In this tutorial you will build a simple documentation project using Sphinx, and
7 view it in your browser as HTML. The project will include narrative,
8 handwritten documentation, as well as autogenerated API documentation.
9
10 The tutorial is aimed towards Sphinx newcomers willing to learn the fundamentals
11 of how projects are created and structured. You will create a fictional
12 software library to generate random food recipes that will serve as a guide
13 throughout the process, with the objective of properly documenting it.
14
15 To showcase Sphinx capabilities for code documentation you will use Python,
16 which also supports *automatic* documentation generation.
17
18 .. note::
19
20 Several other languages are natively supported in Sphinx for *manual* code
21 documentation, however they require extensions for *automatic* code
22 documentation, like `Breathe <https://breathe.readthedocs.io/>`_.
23
24 To follow the instructions you will need access to a Linux-like command line and
25 a basic understanding of how it works, as well as a working Python installation
26 for development, since you will use *Python virtual environments* to create the
27 project.
28
29 .. toctree::
30
31 getting-started
32 first-steps
33 more-sphinx-customization
34 narrative-documentation
35 describing-code
36 automatic-doc-generation
37 deploying
38 end