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.configThe extension stack and the shared defaults.
scverse_doc.themeThe theme, its chrome, and the per-package accent.
scverse_doc.sourceThe repository links: the header icon, “edit this page”, and
[source].scverse_doc.registryThe package registry, usable as an
intersphinx()mapping.scverse_doc.autodocThe layout of the API pages.
scverse_doc.napoleonProse return sections in NumPy-style docstrings.
scverse_doc.math_coreMath rendered to MathML at build time, via math-core.
scverse_doc.release_notesA
release-notesdirective, rendering a directory of per-version files.scverse_doc.typed_fieldsParameters and attributes as definition lists.
scverse_doc.xref_overridesCross-references to objects documented under another name or role.
Anything set in conf.py wins.