2017-10-21 15:20:21 +01:00
|
|
|
========
|
|
|
|
|
Sphinx
|
|
|
|
|
========
|
|
|
|
|
|
2016-12-18 00:13:21 +09:00
|
|
|
.. image:: https://img.shields.io/pypi/v/sphinx.svg
|
2018-04-18 19:51:48 -07:00
|
|
|
:target: https://pypi.org/project/Sphinx/
|
2018-09-16 13:41:09 -07:00
|
|
|
:alt: Package on PyPI
|
2017-10-21 15:29:35 +01:00
|
|
|
|
2022-06-03 00:22:00 +01: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 15:52:58 +02:00
|
|
|
.. image:: https://readthedocs.org/projects/sphinx/badge/?version=master
|
2022-06-02 22:38:35 +01:00
|
|
|
:target: https://www.sphinx-doc.org/
|
2016-12-18 00:13:21 +09:00
|
|
|
:alt: Documentation Status
|
2017-10-21 15:29:35 +01:00
|
|
|
|
2022-06-02 23:26:01 +01: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 20:37:39 +01:00
|
|
|
|
2022-06-03 00:12:17 +01:00
|
|
|
**Sphinx makes it easy to create intelligent and beautiful documentation.**
|
2017-10-21 15:20:21 +01: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-03 00:12:17 +01:00
|
|
|
Features
|
|
|
|
|
========
|
2017-10-21 15:20:21 +01:00
|
|
|
|
2022-06-06 16:27:32 +01:00
|
|
|
* **Output formats**: HTML, PDF, plain text, EPUB, TeX, manual pages, and more
|
2022-06-03 00:12:17 +01:00
|
|
|
* **Extensive cross-references**: semantic markup and automatic links
|
2017-10-21 15:20:21 +01:00
|
|
|
for functions, classes, glossary terms and similar pieces of information
|
2022-06-03 00:12:17 +01:00
|
|
|
* **Hierarchical structure**: easy definition of a document tree, with automatic
|
2017-10-21 15:20:21 +01:00
|
|
|
links to siblings, parents and children
|
2022-06-03 00:12:17 +01: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 15:20:21 +01:00
|
|
|
|
2024-01-01 15:39:09 +01:00
|
|
|
For more information, refer to `the documentation`_.
|
2017-10-21 15:20:21 +01:00
|
|
|
|
|
|
|
|
Installation
|
|
|
|
|
============
|
2008-03-18 19:37:05 +00:00
|
|
|
|
2022-06-02 23:38:25 +01:00
|
|
|
The following command installs Sphinx from the `Python Package Index`_. You will
|
|
|
|
|
need a working installation of Python and pip.
|
2014-09-20 21:09:33 +02:00
|
|
|
|
2022-06-02 23:38:25 +01:00
|
|
|
.. code-block:: sh
|
2008-03-18 19:37:05 +00:00
|
|
|
|
2022-06-02 23:38:25 +01:00
|
|
|
pip install -U sphinx
|
2015-03-14 16:46:24 +09:00
|
|
|
|
2017-10-21 15:20:21 +01:00
|
|
|
Contributing
|
|
|
|
|
============
|
2015-03-14 16:46:24 +09:00
|
|
|
|
2022-06-02 23:29:58 +01:00
|
|
|
We appreciate all contributions! Refer to `the contributors guide`_ for
|
|
|
|
|
information.
|
2008-03-18 19:37:05 +00:00
|
|
|
|
2022-06-02 23:38:25 +01:00
|
|
|
.. _the documentation: https://www.sphinx-doc.org/
|
2022-06-02 22:38:35 +01:00
|
|
|
.. _the contributors guide: https://www.sphinx-doc.org/en/master/internals/contributing.html
|
2022-06-02 23:38:25 +01:00
|
|
|
.. _Python Package Index: https://pypi.org/project/Sphinx/
|