Skip to content

Commit 3e2009b

Browse files
committed
Add custom css for nbsphinx rendering.
1 parent e4c9849 commit 3e2009b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/_static/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
img {
2+
width: 90%;
3+
height: auto;
4+
}

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@
189189
# so a file named "default.css" will overwrite the builtin "default.css".
190190
html_static_path = ["_static"]
191191

192+
# Custom CSS
193+
html_css_files = ['custom.css']
194+
192195
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
193196
# using the given strftime format.
194197
# html_last_updated_fmt = '%b %d, %Y'

0 commit comments

Comments
 (0)