Kitchen sink#
Every component the theme styles, on one page, so a change to
scverse.css
can be eyeballed in both colour schemes. The navbar, ecosystem dropdown and footer are on this page
like on any other – switch the theme with the toggle in the navbar.
Text#
Body copy with bold, italic, inline literal (the default role), an
external link, an internal one, a footnote[1] and a
cross-reference to intersphinx().
Third level#
Fourth level#
Inline maths \(e^{i\pi} = -1\) and a block:
Inline roles#
Press Ctrl + K, hit Search, then .
Run hatch run docs:build, which writes docs/_build/html/page.html, prints
build succeeded, and is what CI calls. A token is a
custom property; H2O and x2 also render.
Lists#
Bullet
Bullet
Nested
Numbered
Numbered
- Definition list
Enabled through the
deflistMyST extension.
Field and option lists and hlist are docutils-only, so they need eval-rst:
- Field:
A field list entry.
- Another:
A second one.
- -W
Turn warnings into errors.
- -D <setting=value>
Override a
conf.pyvalue.- --keep-going
A long option.
|
|
|
Admonitions#
Note
A note, in the theme’s border and surface tokens.
Warning
A warning.
See also
A cross-reference box.
Tip
A tip.
Important
Something important.
Hint
A hint.
Attention
Pay attention.
Caution
Be careful.
Danger
Danger.
Error
An error.
A custom title
An admonition with its own title, styled from the note class.
A collapsed dropdown
Body of the dropdown.
Versions#
Added in version 0.1.0: This page.
Changed in version 0.2.0: Grew the badge section.
Deprecated since version 0.3.0: Nothing yet.
Structure#
A rubric
A block quote, for text lifted from somewhere else.
Code#
from scverse_doc import intersphinx
mapping = intersphinx() | {"sphinx": ("https://www.sphinx-doc.org/en/master/", None)}
$ hatch run docs:build
1first = "plain"
2second = "emphasised"
3third = "plain"
>>> from scverse_doc import registry
>>> registry.packages["scanpy"].accent
'#de367b'
Table#
Token |
Role |
|---|---|
|
Links and text, contrast-checked |
|
Underlines and surfaces |
|
Shared component geometry |
Cards#
Title colour comes from --pst-heading-color.
Hover it: the title switches to the accent, the card lifts.
Body.
Tabs#
Content of the first tab.
Content of the second tab.