Sphinx Extensible technical documentation generator with cross-references, API documentation and multiple outputs.
Overview Sphinx is an open-source technical documentation generator that combines structured prose, cross-references and programming-language documentation. It can produce HTML, LaTeX-based PDF, EPUB and other outputs from a maintained source project. Its domains and extensions make it useful for documentation that needs links to code objects and reference material as well as narrative guides.[2]
Contents Markup and code reference Sphinx uses reStructuredText and supports Markdown through a parser such as MyST. MyST extends Markdown with constructs that expose Sphinx's roles and directives. Reusing ordinary Markdown paragraphs is therefore different from migrating a complete document with extension-specific references, directives and build configuration.[2] [3]
The autodoc extension imports Python modules and extracts their docstrings. Import-time side effects execute during the documentation build, and unavailable dependencies can prevent imports. Generating API reference this way is not simply reading inert text files; the project and its build environment must support the imports that the documentation configuration requests.[4]
Output and build requirements The LaTeX builder produces source that must then be compiled into PDF with a sufficiently complete LaTeX installation. Sphinx also provides HTML and EPUB builders, but selecting a different output format can introduce additional tooling and layout requirements. A successful HTML build is not a guarantee that the same project already has a working print-production setup.[5]
The project uses the BSD two-clause license unless otherwise indicated. Themes and extensions can introduce their own terms and dependencies. The generated website can be served separately from the authoring environment, while future rebuilds still require the source, configuration and relevant extension versions.[1] [5]
Substitution scope Sphinx can substitute for MkDocs for a technical manual when cross-references, language domains or multiple output formats are central requirements. It does not run MkDocs themes and plugins as an interchangeable backend. A migration needs to map navigation, markup extensions and code-reference conventions, with the chosen Markdown parser determining how much existing source can be retained.[2] [3] [6] [7]
References Sphinx license BSD two-clause terms unless otherwise indicated; the file does not enumerate included-component exceptions. Checked 2026-10-13.
vendor · retrieved 2026-10-07 Sphinx overview Structured technical content, domains and builders
vendor · retrieved 2026-10-07 Sphinx Markdown support MyST parser requirement and syntax
vendor · retrieved 2026-10-07 Sphinx autodoc Imports documented modules and executes import-time side effects
vendor · retrieved 2026-10-07 Sphinx builders HTML, LaTeX/PDF and EPUB output dependencies
vendor · retrieved 2026-10-07 MkDocs overview Markdown, YAML, Python and static hosting
vendor · retrieved 2026-10-07 Writing MkDocs documentation Markdown pages, navigation, linking and assets
vendor · retrieved 2026-10-07 https://github.com/sphinx-doc/sphinx/blob/master/LICENSE.rst Opening scope clause: BSD two-clause license unless otherwise indicated. Checked 2026-10-13.
vendor · retrieved 2026-10-07 Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.