Skip to content

Commit 9b561a7

Browse files
committed
docs: Add custom CSS file, with code for admonition.
1 parent 4b60b45 commit 9b561a7

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
]
3939

4040
# Add any paths that contain templates here, relative to this directory.
41-
#templates_path = ['templates']
41+
templates_path = ['templates']
4242

4343
# The suffix of source filenames.
4444
source_suffix = '.rst'
@@ -144,7 +144,7 @@
144144
# Add any paths that contain custom static files (such as style sheets) here,
145145
# relative to this directory. They are copied after the builtin static files,
146146
# so a file named "default.css" will overwrite the builtin "default.css".
147-
#html_static_path = ['static']
147+
html_static_path = ['static']
148148

149149
# Add any extra paths that contain custom files (such as robots.txt or
150150
# .htaccess) here, relative to this directory. These files are copied

docs/static/customstyle.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* custom CSS for Micro Python docs
2+
*/
3+
4+
.admonition-difference-to-cpython {
5+
border: 1px solid black;
6+
}
7+
8+
.admonition-difference-to-cpython .admonition-title {
9+
margin: 4px;
10+
}

docs/templates/layout.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{% extends "!layout.html" %}
2+
{% set css_files = css_files + ["_static/customstyle.css"] %}

0 commit comments

Comments
 (0)