Skip to content

Commit 993600c

Browse files
authored
add custom css to fix image deformation (#791)
1 parent feb814e commit 993600c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

_static/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
div.cell_output img {
2+
height: auto !important;
3+
}

examples/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def setup(app: Sphinx):
107107
# relative to this directory. They are copied after the builtin static files,
108108
# so a file named "default.css" will overwrite the builtin "default.css".
109109
html_static_path = ["../_static"]
110+
html_css_files = ["custom.css"]
110111
html_extra_path = ["../_thumbnails", "robots.txt"]
111112
templates_path = ["../_templates"]
112113
html_sidebars = {

requirements-docs.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
ablog>=0.11
22
matplotlib
3-
myst-nb<=1.0.0
3+
myst-nb
44
sphinx-codeautolink
55
sphinx>=5
6-
pymc-sphinx-theme==0.14
6+
pymc-sphinx-theme
77
sphinx-copybutton
88
sphinx-design
99
sphinx-notfound-page

0 commit comments

Comments
 (0)