Skip to content

Commit

Permalink
docs: Add custom CSS file, with code for admonition.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Dec 21, 2014
1 parent 4b60b45 commit 9b561a7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
]

# Add any paths that contain templates here, relative to this directory.
#templates_path = ['templates']
templates_path = ['templates']

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

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down
10 changes: 10 additions & 0 deletions docs/static/customstyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* custom CSS for Micro Python docs
*/

.admonition-difference-to-cpython {
border: 1px solid black;
}

.admonition-difference-to-cpython .admonition-title {
margin: 4px;
}
2 changes: 2 additions & 0 deletions docs/templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{% extends "!layout.html" %}
{% set css_files = css_files + ["_static/customstyle.css"] %}

0 comments on commit 9b561a7

Please sign in to comment.