| 1 |
====== |
| 2 |
Sphinx |
| 3 |
====== |
| 4 |
|
| 5 |
.. cssclass:: sphinx-tagline |
| 6 |
.. epigraph:: Create intelligent and beautiful documentation with ease |
| 7 |
|
| 8 |
.. container:: sphinx-features |
| 9 |
|
| 10 |
.. admonition:: 📝 Rich Text Formatting |
| 11 |
:class: sphinx-feature |
| 12 |
|
| 13 |
Author in :ref:`reStructuredText <rst-primer>` |
| 14 |
or :ref:`MyST Markdown <markdown>` |
| 15 |
to create highly structured technical documents, |
| 16 |
including tables, highlighted code blocks, mathematical notations, and more. |
| 17 |
|
| 18 |
.. admonition:: 🔗 Powerful Cross-Referencing |
| 19 |
:class: sphinx-feature |
| 20 |
|
| 21 |
Create :ref:`cross-references <xref>` |
| 22 |
within your project, |
| 23 |
and even across :ref:`different projects <ext-intersphinx>`. |
| 24 |
Include references to |
| 25 |
sections, figures, tables, citations, glossaries, code objects, |
| 26 |
and more. |
| 27 |
|
| 28 |
.. admonition:: 📚 Versatile Documentation Formats |
| 29 |
:class: sphinx-feature |
| 30 |
|
| 31 |
Generate documentation in the preferred formats of your audience, including |
| 32 |
HTML, LaTeX (for PDF), ePub, Texinfo, :ref:`and more <builders>`. |
| 33 |
|
| 34 |
.. admonition:: 🎨 Extensive Theme Support |
| 35 |
:class: sphinx-feature |
| 36 |
|
| 37 |
Create visually appealing documentation, |
| 38 |
with a wide choice of :ref:`built-in <builtin-themes>` |
| 39 |
and :ref:`third-party <third-party-themes>` HTML themes |
| 40 |
and the ability to customize |
| 41 |
or :ref:`create new themes <extension-html-theme>`. |
| 42 |
|
| 43 |
.. admonition:: 🔌 Fully Extensible |
| 44 |
:class: sphinx-feature |
| 45 |
|
| 46 |
Add custom functionality, |
| 47 |
via robust :ref:`extension mechanisms <extending-sphinx>` |
| 48 |
with numerous :ref:`built-in <builtin-extensions>` |
| 49 |
and :ref:`third-party <third-party-extensions>` |
| 50 |
extensions available for tasks like |
| 51 |
creating diagrams, testing code, and more. |
| 52 |
|
| 53 |
.. admonition:: 🛠️ Automatic API Documentation |
| 54 |
:class: sphinx-feature |
| 55 |
|
| 56 |
Generate API documentation for |
| 57 |
Python, C++ and other :ref:`software domains <usage-domains>`, |
| 58 |
manually or :ref:`automatically from docstrings <ext-autodoc>`, |
| 59 |
ensuring your code documentation |
| 60 |
stays up-to-date with minimal effort. |
| 61 |
|
| 62 |
.. admonition:: 🌍 Internationalization (i18n) |
| 63 |
:class: sphinx-feature |
| 64 |
|
| 65 |
Add documentation :ref:`translations <intl>` |
| 66 |
multiple languages to reach a global audience. |
| 67 |
|
| 68 |
.. admonition:: 🌟 Active Community and Support |
| 69 |
:class: sphinx-feature |
| 70 |
|
| 71 |
Benefit from an :ref:`active community <support-index>`, |
| 72 |
with numerous resources, tutorials, forums, and examples. |
| 73 |
|
| 74 |
.. .. admonition:: 🌐 Integration with Version Control |
| 75 |
.. :class: sphinx-feature |
| 76 |
|
| 77 |
.. Sphinx integrates seamlessly with version control systems like Git. |
| 78 |
.. This allows for easy collaboration, version tracking, |
| 79 |
.. and deployment of documentation as part of a continuous integration pipeline. |
| 80 |
|
| 81 |
---------------- |
| 82 |
|
| 83 |
.. container:: sphinx-users |
| 84 |
|
| 85 |
As used by: |
| 86 |
|
| 87 |
.. container:: sphinx-users-logos |
| 88 |
|
| 89 |
.. figure:: _static/python-logo.png |
| 90 |
:alt: Python Logo |
| 91 |
:height: 100px |
| 92 |
:align: center |
| 93 |
:target: https://docs.python.org |
| 94 |
|
| 95 |
Python |
| 96 |
|
| 97 |
.. figure:: _static/linux-logo.png |
| 98 |
:alt: Linux Logo |
| 99 |
:height: 100px |
| 100 |
:align: center |
| 101 |
:target: https://docs.kernel.org/ |
| 102 |
|
| 103 |
Linux Kernel |
| 104 |
|
| 105 |
.. figure:: _static/jupyter-logo.png |
| 106 |
:alt: Jupyter Logo |
| 107 |
:height: 100px |
| 108 |
:align: center |
| 109 |
:target: https://docs.jupyter.org |
| 110 |
|
| 111 |
Project Jupyter |
| 112 |
|
| 113 |
---------------- |
| 114 |
|
| 115 |
See below for how to navigate Sphinx's documentation. |
| 116 |
|
| 117 |
.. seealso:: |
| 118 |
|
| 119 |
The `Sphinx documentation Table of Contents <contents.html>`_ has |
| 120 |
a full list of this site's pages. |
| 121 |
|
| 122 |
.. _get-started: |
| 123 |
|
| 124 |
Get started |
| 125 |
=========== |
| 126 |
|
| 127 |
These sections cover the basics of getting started with Sphinx, including |
| 128 |
creating and building your own documentation from scratch. |
| 129 |
|
| 130 |
.. toctree:: |
| 131 |
:maxdepth: 2 |
| 132 |
:caption: The Basics |
| 133 |
|
| 134 |
usage/installation |
| 135 |
usage/quickstart |
| 136 |
tutorial/index |
| 137 |
|
| 138 |
.. _user-guides: |
| 139 |
|
| 140 |
User guide |
| 141 |
========== |
| 142 |
|
| 143 |
These sections cover various topics in using and extending Sphinx for various |
| 144 |
use-cases. They are a comprehensive guide to using Sphinx in many contexts and |
| 145 |
assume more knowledge of Sphinx. If you are new to Sphinx, we recommend |
| 146 |
starting with :ref:`get-started`. |
| 147 |
|
| 148 |
.. toctree:: |
| 149 |
:maxdepth: 2 |
| 150 |
:caption: User guide |
| 151 |
|
| 152 |
usage/index |
| 153 |
development/index |
| 154 |
extdev/index |
| 155 |
latex |
| 156 |
|
| 157 |
Community guide |
| 158 |
=============== |
| 159 |
|
| 160 |
Sphinx is community supported and welcomes contributions from anybody. |
| 161 |
The sections below should help you get started joining the Sphinx community |
| 162 |
as well as contributing. |
| 163 |
|
| 164 |
See the :doc:`Sphinx contributors' guide <internals/contributing>` if you would |
| 165 |
like to contribute to the project. |
| 166 |
|
| 167 |
.. toctree:: |
| 168 |
:maxdepth: 2 |
| 169 |
:caption: Community |
| 170 |
|
| 171 |
support |
| 172 |
internals/index |
| 173 |
faq |
| 174 |
authors |
| 175 |
|
| 176 |
Reference guide |
| 177 |
=============== |
| 178 |
|
| 179 |
Reference documentation is more complete and programmatic in nature, it is a |
| 180 |
collection of information that can be quickly referenced. If you would like |
| 181 |
usecase-driven documentation, see :ref:`get-started` or :ref:`user-guides`. |
| 182 |
|
| 183 |
.. toctree:: |
| 184 |
:maxdepth: 2 |
| 185 |
:caption: Reference |
| 186 |
|
| 187 |
man/index |
| 188 |
usage/configuration |
| 189 |
usage/extensions/index |
| 190 |
usage/restructuredtext/index |
| 191 |
glossary |
| 192 |
changes/index |
| 193 |
examples |