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