From 91e8abdc0d6238e0678e940779836b2baba7a52e Mon Sep 17 00:00:00 2001 From: "Oriol (ProDesk)" Date: Thu, 8 May 2025 12:21:42 +0200 Subject: [PATCH] add custom css to fix image deformation --- _static/custom.css | 3 +++ examples/conf.py | 1 + requirements-docs.txt | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 _static/custom.css diff --git a/_static/custom.css b/_static/custom.css new file mode 100644 index 000000000..ca5812168 --- /dev/null +++ b/_static/custom.css @@ -0,0 +1,3 @@ +div.cell_output img { + height: auto !important; +} diff --git a/examples/conf.py b/examples/conf.py index 054a17871..aa6b194b8 100644 --- a/examples/conf.py +++ b/examples/conf.py @@ -107,6 +107,7 @@ def setup(app: Sphinx): # 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_css_files = ["custom.css"] html_extra_path = ["../_thumbnails", "robots.txt"] templates_path = ["../_templates"] html_sidebars = { diff --git a/requirements-docs.txt b/requirements-docs.txt index f3c264262..68398627e 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,9 +1,9 @@ ablog>=0.11 matplotlib -myst-nb<=1.0.0 +myst-nb sphinx-codeautolink sphinx>=5 -pymc-sphinx-theme==0.14 +pymc-sphinx-theme sphinx-copybutton sphinx-design sphinx-notfound-page