From fb2b1e31edab146dcc0f7a1db7d81fefc7a683bb Mon Sep 17 00:00:00 2001 From: Sebastian Gsell Date: Wed, 8 May 2024 15:06:10 +0200 Subject: [PATCH] Update image links --- docs/source/_static/css/custom.css | 58 +++++++------------ .../_static/css/custom_intermediate.css | 52 +++++++++++++++++ docs/source/_static/css/custom_tobi.css | 36 ------------ docs/source/conf.py | 39 ++----------- 4 files changed, 78 insertions(+), 107 deletions(-) create mode 100644 docs/source/_static/css/custom_intermediate.css delete mode 100644 docs/source/_static/css/custom_tobi.css diff --git a/docs/source/_static/css/custom.css b/docs/source/_static/css/custom.css index 114517789..e6597db65 100644 --- a/docs/source/_static/css/custom.css +++ b/docs/source/_static/css/custom.css @@ -1,52 +1,36 @@ -/* Override some aspects of the pydata-sphinx-theme */ - -:root { - /* Use softer blue from bootstrap's default info color */ - --pst-color-info: 23, 162, 184; -} - -table { - width: auto; /* Override fit-content which breaks Styler user guide ipynb */ -} - -/* Main index page overview cards */ - -.intro-card { - padding: 30px 10px 20px 10px; +/* Remove execution count for notebook cells. */ +div.prompt { + display: none; } -.intro-card .sd-card-img-top { - margin: 10px; - height: 52px; - background: none !important; +/* Classes for the index page. */ +.index-card-image { + padding-top: 1rem; + height: 68px; + text-align: center; } -.intro-card .sd-card-title { - color: var(--pst-color-primary); - font-size: var(--pst-font-size-h5); - padding: 1rem 0rem 0.5rem 0rem; +.index-card-link { + color: var(--sd-color-card-text); + font-weight: bold; } -.intro-card .sd-card-footer { - border: none !important; +pre { + padding-left: 20px } -.intro-card .sd-card-footer p.sd-card-text { - max-width: 220px; - margin-left: auto; - margin-right: auto; +li pre { + padding-left: 20px } -.intro-card .sd-btn-secondary { - background-color: #6c757d !important; - border-color: #6c757d !important; +.highlight { + background: #f5f5f5 } -.intro-card .sd-btn-secondary:hover { - background-color: #5a6268 !important; - border-color: #545b62 !important; +.highlight button.copybtn{ + background-color: #f5f5f5; } -.card, .card img { - background-color: var(--pst-color-background); +.highlight button.copybtn:hover { + background-color: #f5f5f5; } diff --git a/docs/source/_static/css/custom_intermediate.css b/docs/source/_static/css/custom_intermediate.css new file mode 100644 index 000000000..114517789 --- /dev/null +++ b/docs/source/_static/css/custom_intermediate.css @@ -0,0 +1,52 @@ +/* Override some aspects of the pydata-sphinx-theme */ + +:root { + /* Use softer blue from bootstrap's default info color */ + --pst-color-info: 23, 162, 184; +} + +table { + width: auto; /* Override fit-content which breaks Styler user guide ipynb */ +} + +/* Main index page overview cards */ + +.intro-card { + padding: 30px 10px 20px 10px; +} + +.intro-card .sd-card-img-top { + margin: 10px; + height: 52px; + background: none !important; +} + +.intro-card .sd-card-title { + color: var(--pst-color-primary); + font-size: var(--pst-font-size-h5); + padding: 1rem 0rem 0.5rem 0rem; +} + +.intro-card .sd-card-footer { + border: none !important; +} + +.intro-card .sd-card-footer p.sd-card-text { + max-width: 220px; + margin-left: auto; + margin-right: auto; +} + +.intro-card .sd-btn-secondary { + background-color: #6c757d !important; + border-color: #6c757d !important; +} + +.intro-card .sd-btn-secondary:hover { + background-color: #5a6268 !important; + border-color: #545b62 !important; +} + +.card, .card img { + background-color: var(--pst-color-background); +} diff --git a/docs/source/_static/css/custom_tobi.css b/docs/source/_static/css/custom_tobi.css deleted file mode 100644 index e6597db65..000000000 --- a/docs/source/_static/css/custom_tobi.css +++ /dev/null @@ -1,36 +0,0 @@ -/* Remove execution count for notebook cells. */ -div.prompt { - display: none; -} - -/* Classes for the index page. */ -.index-card-image { - padding-top: 1rem; - height: 68px; - text-align: center; -} - -.index-card-link { - color: var(--sd-color-card-text); - font-weight: bold; -} - -pre { - padding-left: 20px -} - -li pre { - padding-left: 20px -} - -.highlight { - background: #f5f5f5 -} - -.highlight button.copybtn{ - background-color: #f5f5f5; -} - -.highlight button.copybtn:hover { - background-color: #f5f5f5; -} diff --git a/docs/source/conf.py b/docs/source/conf.py index a8c9f893b..7363793ff 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -95,7 +95,6 @@ # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] -html_static_path = ["_static"] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: @@ -165,41 +164,15 @@ # Add any paths that contain custom static files (such as style sheets) here, relative # to this directory. They are copied after the built-in static files, so a file named # "default.css" will overwrite the built-in "default.css". -html_css_files = ["css/termynal.css", "css/termynal_custom.css", "css/custom_tobi.css"] +html_css_files = ["css/termynal.css", "css/termynal_custom.css", "css/custom.css"] html_js_files = ["js/termynal.js", "js/custom.js"] -# html_css_files = ["css/custom.css"] - -# html_theme_options = { -# "github_url": "https://github.com/OpenSourceEconomics/estimagic", -# "logo": { -# "text": "estimagic", -# "image_dark": "_static/images/estimagic_icon_dark_mode.svg", -# }, -# } - - -# # 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"] - -# # Custom sidebar templates, must be a dictionary that maps document names -# # to template names. -# # -# # This is required for the alabaster theme -# # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -# html_sidebars = { -# "**": [ -# "relations.html", # needs 'show_related': True theme option to display -# "searchbox.html", -# ] -# } + # 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"] # If false, no module index is generated. html_domain_indices = True @@ -224,8 +197,6 @@ html_theme_options = { "sidebar_hide_name": True, "navigation_with_keys": True, - # "light_logo": "_static/images/estimagic_icon.svg", - # "dark_logo": "_static/images/estimagic_icon_dark_mode.svg", - "light_logo": "_static/images/estimagic_logo", - "dark_logo": "_static/images/estimagic_logo_dark_mode", + "light_logo": "images/estimagic_logo.svg", + "dark_logo": "images/estimagic_logo_dark_mode.svg", }