API#
extensions = ["scverse_doc"] sets up every subextension below; each also works on its own.
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.registryThe package registry, usable as an
intersphinx()mapping.scverse_doc.sourceThe repository links: the navbar icon, “edit this page”, and
[source].scverse_doc.themeThe theme, its chrome, and the per-package accent.
Anything set in conf.py wins.
scverse_doc.config#
Extensions set up alongside this one, so packages list only |
|
The MyST syntax extensions, i.e. the |
|
Sphinx config values applied unless |
scverse_doc.theme#
Registers the theme and its theme options.
Selecting it with html_theme = "scverse" is enough on its own –
it is a registered Sphinx theme, so it needs no extensions entry.
scverse_doc.source#
Repository links – the navbar icon, “edit this page”, and [source] –
from the source_* config values, for whichever theme is selected.
scverse_doc.registry#
Every registered package, keyed and ordered by case-folded name. |
|
Return only the core packages. |
|
|
Build an |
|
One entry in the scverse package registry. |