mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
This commit is intended to improve new user's first-interaction with the Sphinx site: - Make page header icon/text smaller and not capitalized - Give min-width to left sidebar (it was getting too small at certain window sizes) - Replace features list on landing page with admonition boxes, with adaptive layout - Add landing page "used by" section - Slightly restructure the Extension section, into Tutorials and How-tos - Add code to `conf.py` to write HTML write redirect pages for moved documents - Improve support page, by adding link to Stackoverflow, GH discussion and ReadtheDocs, and remove defunct link to libera chat and matplotlib tutorial
39 lines
1.3 KiB
ReStructuredText
39 lines
1.3 KiB
ReStructuredText
.. _tutorial:
|
|
|
|
Build your first project
|
|
========================
|
|
|
|
In this tutorial you will build a simple documentation project using Sphinx, and
|
|
view it in your browser as HTML. The project will include narrative,
|
|
handwritten documentation, as well as autogenerated API documentation.
|
|
|
|
The tutorial is aimed towards Sphinx newcomers willing to learn the fundamentals
|
|
of how projects are created and structured. You will create a fictional
|
|
software library to generate random food recipes that will serve as a guide
|
|
throughout the process, with the objective of properly documenting it.
|
|
|
|
To showcase Sphinx capabilities for code documentation you will use Python,
|
|
which also supports *automatic* documentation generation.
|
|
|
|
.. note::
|
|
|
|
Several other languages are natively supported in Sphinx for *manual* code
|
|
documentation, however they require extensions for *automatic* code
|
|
documentation, like `Breathe <https://breathe.readthedocs.io/>`_.
|
|
|
|
To follow the instructions you will need access to a Linux-like command line and
|
|
a basic understanding of how it works, as well as a working Python installation
|
|
for development, since you will use *Python virtual environments* to create the
|
|
project.
|
|
|
|
.. toctree::
|
|
|
|
getting-started
|
|
first-steps
|
|
more-sphinx-customization
|
|
narrative-documentation
|
|
describing-code
|
|
automatic-doc-generation
|
|
deploying
|
|
end
|