doc: Add Sphinx extension for code samples
This adds a new Sphinx extension for both a code-sample directive and role. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
7ca35f94ee
commit
3c5f3da4d8
3 changed files with 324 additions and 0 deletions
15
doc/_static/css/custom.css
vendored
15
doc/_static/css/custom.css
vendored
|
@ -544,6 +544,21 @@ a.internal:visited code.literal {
|
|||
color: var(--admonition-tip-title-color);
|
||||
}
|
||||
|
||||
/* Admonition tweaks - sphinx_togglebutton */
|
||||
|
||||
.rst-content .admonition.toggle {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.rst-content .admonition.toggle button {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.rst-content .admonition.toggle .tb-icon {
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
/* Keyboard shortcuts tweaks */
|
||||
kbd, .kbd,
|
||||
.rst-content :not(dl.option-list) > :not(dt):not(kbd):not(.kbd) > kbd,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue