API#

The scverse Sphinx theme and shared documentation configuration.

A package’s conf.py needs few lines:

extensions = ["scverse_doc"]

source_repository = "https://github.com/scverse/pertpy"

This extension sets up the subextensions, each of which also works on its own:

scverse_doc.config

The extension stack and the shared defaults.

scverse_doc.theme

The theme, its chrome, and the per-package accent.

scverse_doc.source

The repository links: the header icon, “edit this page”, and [source].

scverse_doc.registry

The package registry, usable as an intersphinx() mapping.

scverse_doc.autodoc

The layout of the API pages.

scverse_doc.napoleon

Prose return sections in NumPy-style docstrings.

scverse_doc.math_core

Math rendered to MathML at build time, via math-core.

scverse_doc.release_notes

A release-notes directive, rendering a directory of per-version files.

scverse_doc.typed_fields

Parameters and attributes as definition lists.

scverse_doc.xref_overrides

Cross-references to objects documented under another name or role.

Anything set in conf.py wins.