# Sphinx

Extensible technical documentation generator with cross\-references, API documentation and multiple outputs\.

ID: Q980 · Revision: 1028

Type: software · License: BSD\-2\-Clause unless otherwise indicated[^sphinx-license] · Status: active

Website: https://www.sphinx-doc.org/



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\.[^sphinx-home]

## 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\.[^sphinx-markdown][^sphinx-home]

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\.[^sphinx-autodoc]

## 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\.[^sphinx-builders]

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\.[^sphinx-license][^sphinx-builders]

## Substitution scope

Sphinx can substitute for [MkDocs](/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\.[^sphinx-home][^sphinx-markdown][^mkdocs-home][^mkdocs-writing]

## Capabilities and substitutions

### Structured technical outputs — supported

Builders support HTML, EPUB and LaTeX\-based PDF with format\-specific dependencies\.[^sphinx-home][^sphinx-builders]

Use case: Technical manuals · Platforms: Web, Local or hosted build environment · Region: Hosting and optional external\-service availability apply

### Docstring extraction — limited

Autodoc imports modules and can execute import\-time side effects; dependencies must resolve\.[^sphinx-autodoc]

Use case: Python API reference generation · Platforms: Web, Local or hosted build environment · Region: Hosting and optional external\-service availability apply

### [Substitute for MkDocs](/mkdocs) — limited

Can replace the documentation build role after converting markup, navigation and extensions; PDF output needs additional tooling\.[^sphinx-home][^sphinx-markdown][^sphinx-builders][^mkdocs-home]

Use case: Structured technical manuals and API references · Platforms: Web, Local or hosted build environment · Region: Hosting and optional external\-service availability apply

## References

[^sphinx-license]: [Sphinx license](<https://github.com/sphinx-doc/sphinx/blob/master/LICENSE.rst>) — BSD two\-clause terms unless otherwise indicated; the file does not enumerate included\-component exceptions\. Checked 2026\-10\-13\. (vendor; retrieved 2026-10-07T00:35:20Z)

[^sphinx-home]: [Sphinx overview](<https://www.sphinx-doc.org/en/master/>) — Structured technical content, domains and builders (vendor; retrieved 2026-10-07T00:35:20Z)

[^sphinx-markdown]: [Sphinx Markdown support](<https://www.sphinx-doc.org/en/master/usage/markdown.html>) — MyST parser requirement and syntax (vendor; retrieved 2026-10-07T00:35:20Z)

[^sphinx-autodoc]: [Sphinx autodoc](<https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html>) — Imports documented modules and executes import\-time side effects (vendor; retrieved 2026-10-07T00:35:20Z)

[^sphinx-builders]: [Sphinx builders](<https://www.sphinx-doc.org/en/master/usage/builders/index.html>) — HTML, LaTeX/PDF and EPUB output dependencies (vendor; retrieved 2026-10-07T00:35:20Z)

[^mkdocs-home]: [MkDocs overview](<https://www.mkdocs.org/>) — Markdown, YAML, Python and static hosting (vendor; retrieved 2026-10-07T00:24:20Z)

[^mkdocs-writing]: [Writing MkDocs documentation](<https://www.mkdocs.org/user-guide/writing-your-docs/>) — Markdown pages, navigation, linking and assets (vendor; retrieved 2026-10-07T00:25:31Z)

[^source-8]: [https://github\.com/sphinx\-doc/sphinx/blob/master/LICENSE\.rst](<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-07T00:35:20Z)

Source revision: https://substitutefor.net/entities/Q980?revision=1028
