| 1 |
======== |
| 2 |
Sphinx |
| 3 |
======== |
| 4 |
|
| 5 |
.. image:: https://img.shields.io/pypi/v/sphinx.svg |
| 6 |
:target: https://pypi.org/project/Sphinx/ |
| 7 |
:alt: Package on PyPI |
| 8 |
|
| 9 |
.. image:: https://github.com/sphinx-doc/sphinx/actions/workflows/main.yml/badge.svg |
| 10 |
:target: https://github.com/sphinx-doc/sphinx/actions/workflows/main.yml |
| 11 |
:alt: Build Status |
| 12 |
|
| 13 |
.. image:: https://readthedocs.org/projects/sphinx/badge/?version=master |
| 14 |
:target: https://www.sphinx-doc.org/ |
| 15 |
:alt: Documentation Status |
| 16 |
|
| 17 |
.. image:: https://img.shields.io/badge/License-BSD%202--Clause-blue.svg |
| 18 |
:target: https://opensource.org/licenses/BSD-2-Clause |
| 19 |
:alt: BSD 2 Clause |
| 20 |
|
| 21 |
**Sphinx makes it easy to create intelligent and beautiful documentation.** |
| 22 |
|
| 23 |
Sphinx uses reStructuredText as its markup language, and many of its strengths |
| 24 |
come from the power and straightforwardness of reStructuredText and its parsing |
| 25 |
and translating suite, the Docutils. |
| 26 |
|
| 27 |
Features |
| 28 |
======== |
| 29 |
|
| 30 |
* **Output formats**: HTML, PDF, plain text, EPUB, TeX, manual pages, and more |
| 31 |
* **Extensive cross-references**: semantic markup and automatic links |
| 32 |
for functions, classes, glossary terms and similar pieces of information |
| 33 |
* **Hierarchical structure**: easy definition of a document tree, with automatic |
| 34 |
links to siblings, parents and children |
| 35 |
* **Automatic indices**: general index as well as a module index |
| 36 |
* **Code highlighting**: automatic highlighting using the Pygments highlighter |
| 37 |
* **Templating**: Flexible HTML output using the Jinja 2 templating engine |
| 38 |
* **Extension ecosystem**: Many extensions are available, for example for |
| 39 |
automatic function documentation or working with Jupyter notebooks. |
| 40 |
* **Language Support**: Python, C, C++, JavaScript, mathematics, and many other |
| 41 |
languages through extensions. |
| 42 |
|
| 43 |
For more information, refer to `the documentation`_. |
| 44 |
|
| 45 |
Installation |
| 46 |
============ |
| 47 |
|
| 48 |
The following command installs Sphinx from the `Python Package Index`_. You will |
| 49 |
need a working installation of Python and pip. |
| 50 |
|
| 51 |
.. code-block:: shell |
| 52 |
|
| 53 |
pip install -U sphinx |
| 54 |
|
| 55 |
Contributing |
| 56 |
============ |
| 57 |
|
| 58 |
We appreciate all contributions! Refer to `the contributors guide`_ for |
| 59 |
information. |
| 60 |
|
| 61 |
.. _the documentation: https://www.sphinx-doc.org/ |
| 62 |
.. _the contributors guide: https://www.sphinx-doc.org/en/master/internals/contributing.html |
| 63 |
.. _Python Package Index: https://pypi.org/project/Sphinx/ |