diff --git a/docs/_static/main_stylesheet.css b/docs/_static/main_stylesheet.css index dc4199e3e..2aacdf920 100644 --- a/docs/_static/main_stylesheet.css +++ b/docs/_static/main_stylesheet.css @@ -1,4 +1,10 @@ -.wy-nav-content{ - max-width: 1000px; - margin: auto; +.wy-nav-content { + max-width: 1000px; + margin: auto; +} + +/* Undo img background from pydata-sphinx-theme dark theme */ +html[data-theme="dark"] img:not(.only-dark):not(.dark-light) { + background-color: transparent !important; + padding: 0 !important; } diff --git a/docs/conf.py b/docs/conf.py index 7df759db7..be274f3eb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -62,6 +62,14 @@ # "../../examples/WealthOfNations.ipynb", # did not install bqplot widget as a federated extension? "../../examples/WidgetControl.ipynb", ] + +# Output file base name for HTML help builder. +html_theme = "pydata_sphinx_theme" +#html_theme_path = [pydata_sphinx_theme.get_html_theme_path()] +htmlhelp_basename = 'ipyleafletdoc' +html_static_path = ['_static'] + + def setup(app): app.add_css_file("main_stylesheet.css") @@ -77,8 +85,3 @@ def setup(app): highlight_language = 'python' pygments_style = 'sphinx' -# Output file base name for HTML help builder. -html_theme = "pydata_sphinx_theme" -#html_theme_path = [pydata_sphinx_theme.get_html_theme_path()] -htmlhelp_basename = 'ipyleafletdoc' -html_static_path = ['_static']