From 814301c7f36215871b80331b16515d0117de7b51 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Thu, 18 Jan 2024 09:54:54 -0700 Subject: [PATCH 01/37] Update Python to 3.11, Sphinx to 5.0, sphinx_book_theme to 1.0.0 --- .github/workflows/ci.yaml | 8 ++++---- setup.py | 2 +- sphinx_pythia_theme/__init__.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 62c83e1..d0babf0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -37,7 +37,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -57,8 +57,8 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 - - name: Install build dependecies + python-version: 3.11 + - name: Install build dependencies run: pip install setuptools setuptools-scm wheel - name: Build package run: python setup.py sdist bdist_wheel diff --git a/setup.py b/setup.py index 16b4ce0..4c754f9 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ zip_safe=True, include_package_data=True, install_requires=[ - "sphinx-book-theme>=0.1.7,<0.2", + "sphinx-book-theme>=1.0.0,<1.1.0", ], packages=find_packages(), entry_points={"sphinx.html_themes": ["sphinx_pythia_theme = sphinx_pythia_theme"]}, diff --git a/sphinx_pythia_theme/__init__.py b/sphinx_pythia_theme/__init__.py index 344227d..4e29ee6 100644 --- a/sphinx_pythia_theme/__init__.py +++ b/sphinx_pythia_theme/__init__.py @@ -152,7 +152,7 @@ def copy_image(app, image): def setup(app: Sphinx): - app.require_sphinx("3.5") + app.require_sphinx("5.0") app.add_html_theme("sphinx_pythia_theme", get_html_theme_path()) app.add_directive("banner", Banner) app.connect("builder-inited", copy_config_images) From 2c661e2cbbc67a22aab4115c132b76b644d7c85c Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Thu, 18 Jan 2024 09:55:35 -0700 Subject: [PATCH 02/37] Updated RTD Python to 3.11 --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index b37f7e4..272290f 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -11,7 +11,7 @@ sphinx: # Optionally set the version of Python and requirements required to build your docs python: - version: '3.8' + version: '3.11' install: - requirements: requirements.txt - method: pip From 66ebce0d5e1c2bdd3c9ec8b0959808a8c5a86d25 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Thu, 18 Jan 2024 09:57:07 -0700 Subject: [PATCH 03/37] Update sphinx-book-theme to 1.0.0. (1.1.0 is not yet supported by latest jupyter book) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4c754f9..ef52836 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ "Bug Tracker": "https://github.com/ProjectPythia/sphinx-pythia-theme/issues", }, author="Kevin Paul", - author_email="kpaul@ucar.edu", + author_email="projectpythia@ucar.edu", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", From 4046c93605d1b71842992e2c6f8323c428132a2f Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Thu, 18 Jan 2024 09:59:27 -0700 Subject: [PATCH 04/37] Update Copyright year in docs/_config.yml and docs/conf.py --- docs/_config.yml | 2 +- docs/conf.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index d4daaef..7e11ae7 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -3,7 +3,7 @@ title: "" logo: images/dummy_logo_dark.svg author: the Project Pythia Community -copyright: "2022" +copyright: "2024" email: kpaul@ucar.edu description: >- # this means to ignore newlines This is an example book built with Jupyter Books. diff --git a/docs/conf.py b/docs/conf.py index 61c1cc7..1ace532 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -9,8 +9,8 @@ # -- Project information ----------------------------------------------------- -author = "the Project Pythia Community" -copyright = "2022" +author = "The Project Pythia Community" +copyright = "2024" # -- General configuration --------------------------------------------------- @@ -52,7 +52,7 @@ external_toc_path = "_toc.yml" intersphinx_mapping = { - "python": ("https://docs.python.org/3.8", None), + "python": ("https://docs.python.org/3.11", None), "sphinx": ("https://www.sphinx-doc.org/en/master", None), } From fe07c7c99650c1f67203c9862cdcb214cb19f2d5 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Thu, 18 Jan 2024 10:00:38 -0700 Subject: [PATCH 05/37] Add sphinx-design and change 'tabbed' directives to 'tab-set-code' --- docs/about.rst | 20 ++++++++++---------- requirements.txt | 1 + 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/about.rst b/docs/about.rst index ad3643b..6963771 100644 --- a/docs/about.rst +++ b/docs/about.rst @@ -31,7 +31,7 @@ Additionally, the (``external_links``) option from the PyData Sphinx Theme still works, and these links will be displayed after any links specified by the ``navbar_links`` option. -.. tabbed:: Sphinx +.. tab-set-code:: Sphinx .. code-block:: python @@ -46,7 +46,7 @@ will be displayed after any links specified by the ``navbar_links`` option. ] } -.. tabbed:: Jupyter Book +.. tab-set-code:: Jupyter Book .. code-block:: yaml @@ -91,7 +91,7 @@ To add logo images to the *logo bar* in the footer, use the ``footer_logos`` opt ``html_theme_options``. The name given to each logo is used as the alternate name of the image in HTML. -.. tabbed:: Sphinx +.. tab-set-code:: Sphinx .. code-block:: python @@ -102,7 +102,7 @@ the image in HTML. } } -.. tabbed:: Jupyter Book +.. tab-set-code:: Jupyter Book .. code-block:: yaml @@ -125,7 +125,7 @@ key containing any CSS classes to add to the HTML column division, and an ``item list of dictionaries containing ``name``, ``url``, and ``external`` keys (with the same meaning as the keys in the ``navbar_links`` option above). -.. tabbed:: Sphinx +.. tab-set-code:: Sphinx .. code-block:: python @@ -164,7 +164,7 @@ the keys in the ``navbar_links`` option above). ], } -.. tabbed:: Jupyter Book +.. tab-set-code:: Jupyter Book .. code-block:: yaml @@ -227,7 +227,7 @@ Each *banner* section can be given its own background color or even background i To customize your own banners, all you need to do is add a ``banner`` directive to your section. -.. tabbed:: reStructuredText +.. tab-set-code:: reStructuredText .. code-block:: rst @@ -237,7 +237,7 @@ section. caption: Photo by Jeff Stapleton from Pexels class: dark-banner -.. tabbed:: Myst Markdown +.. tab-set-code:: Myst Markdown .. code-block:: markdown @@ -275,7 +275,7 @@ you need to declare which pages (by document name) will have the *banner* layout this, you need to declare the ``page_layouts`` option in the ``html_theme_options`` and tell the theme to use the ``page-banner.html`` template. -.. tabbed:: Sphinx +.. tab-set-code:: Sphinx .. code-block:: python @@ -285,7 +285,7 @@ tell the theme to use the ``page-banner.html`` template. } } -.. tabbed:: Jupyter Book +.. tab-set-code:: Jupyter Book .. code-block:: yaml diff --git a/requirements.txt b/requirements.txt index f0e5403..6ac6855 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ jupyter-book matplotlib pandas sphinx-click +sphinx-design sphinx-panels sphinx-inline-tabs sphinxext-opengraph From 4b164a0163d5d676bd0ae3ce31ed3e639f11e5ce Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 13:06:24 -0700 Subject: [PATCH 06/37] Fix the depreations, layout changes since book-theme 0.1.10 --- docs/_config.yml | 1 + docs/about.rst | 2 +- docs/conf.py | 7 +++- requirements.txt | 1 + sphinx_pythia_theme/layout.html | 69 +-------------------------------- sphinx_pythia_theme/theme.conf | 2 +- 6 files changed, 10 insertions(+), 72 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index 7e11ae7..55db0f7 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -108,3 +108,4 @@ sphinx: - sphinx.ext.autodoc - sphinx.ext.intersphinx - sphinxcontrib.bibtex + - sphinxcontrib.youtube diff --git a/docs/about.rst b/docs/about.rst index 6963771..c7f4041 100644 --- a/docs/about.rst +++ b/docs/about.rst @@ -18,7 +18,7 @@ Where the Sphinx Book Theme places your ``html_logo`` at the top of the left sid Theme places the logo on the left of the top navigation bar. The PyData Sphinx Theme allows the user to set the link attached to the logo with the ``logo_link`` option in your Sphinx ``html_theme_options`` dictionary. You can learn how to customize your logo on the -`PyData Sphinx Theme documentation `_. +`PyData Sphinx Theme documentation `_. The links on the navigation bar can be set with the ``html_theme_options`` ``navbar_links`` option. This is a list of dictionaries containing a ``name`` key, ``url`` key, and an ``external`` key. The diff --git a/docs/conf.py b/docs/conf.py index 1ace532..21e4269 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -32,15 +32,19 @@ "sphinx_click.ext", "sphinx_comments", "sphinx_copybutton", + 'sphinx_design', "sphinx_external_toc", "sphinx_inline_tabs", "sphinx_panels", + 'sphinx_tabs.tabs', "sphinx_thebe", "sphinx_togglebutton", "sphinx.ext.autodoc", "sphinx.ext.intersphinx", + "sphinx.ext.todo", "sphinx.ext.viewcode", "sphinxcontrib.bibtex", + "sphinxcontrib.youtube", "sphinxext.opengraph", ] @@ -115,7 +119,7 @@ "index": [], "standalone": [], "reference/blog/*": [ - "sidebar-logo.html", + "navbar-logo.html", "search-field.html", "postcard.html", "recentposts.html", @@ -123,7 +127,6 @@ "categories.html", "archives.html", "sbt-sidebar-nav.html", - "sbt-sidebar-footer.html", ], } diff --git a/requirements.txt b/requirements.txt index 6ac6855..c58bd20 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,5 @@ sphinx-click sphinx-design sphinx-panels sphinx-inline-tabs +sphinxcontrib-youtube sphinxext-opengraph diff --git a/sphinx_pythia_theme/layout.html b/sphinx_pythia_theme/layout.html index 97f993a..56d3006 100644 --- a/sphinx_pythia_theme/layout.html +++ b/sphinx_pythia_theme/layout.html @@ -1,68 +1 @@ -{%- extends "sphinx_book_theme/layout.html" %} - -{%- block body_tag %} - -{%- endblock %} - -{%- block content %} -
- - - {%- block docs_navbar %} - - {%- endblock %} - - {%- if theme_page_layouts and pagename in theme_page_layouts %} -
- {%- else %} -
- {%- endif %} -
- {%- block docs_sidebar %} - {%- if sidebars %} - {{ super() }} - {%- else %} -
- {%- endif %} - {%- endblock %} - - {%- block docs_toc %} - {{ super() }} - {%- endblock %} - - {%- block docs_main %} - {%- if theme_page_layouts and pagename in theme_page_layouts %} - {%- include theme_page_layouts[pagename] %} - {%- else %} -
- {%- block docs_body %} - {%- if sidebars %} - {%- include "topbar.html" %} - {%- endif %} -
-
- {{ super.super() }} - {%- if theme_show_prev_next %} - {%- include "_templates/prev-next.html" %} - {%- endif %} -
-
- {%- endblock %} -
- {%- endif %} - {%- endblock %} - -
-
- - {%- block scripts_end %} - {{ _webpack.body_post() }} - {%- endblock %} - -{%- endblock %} - -{%- block footer %} -{{ super.super() }} -{%- endblock %} +{%- extends "sphinx_book_theme/layout.html" %} \ No newline at end of file diff --git a/sphinx_pythia_theme/theme.conf b/sphinx_pythia_theme/theme.conf index 0854db6..7c5c4e8 100644 --- a/sphinx_pythia_theme/theme.conf +++ b/sphinx_pythia_theme/theme.conf @@ -2,7 +2,7 @@ inherit = sphinx_book_theme pygments_style = default stylesheet = sphinx-pythia-theme.min.css -sidebars = search-field.html, sbt-sidebar-nav.html, sbt-sidebar-footer.html +sidebars = search-field.html, sbt-sidebar-nav.html [options] toc_title = On this page From 050ceb96def87648250d98df2471da0300e8af1a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 20:06:37 +0000 Subject: [PATCH 07/37] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 21e4269..f2aecfe 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -32,11 +32,11 @@ "sphinx_click.ext", "sphinx_comments", "sphinx_copybutton", - 'sphinx_design', + "sphinx_design", "sphinx_external_toc", "sphinx_inline_tabs", "sphinx_panels", - 'sphinx_tabs.tabs', + "sphinx_tabs.tabs", "sphinx_thebe", "sphinx_togglebutton", "sphinx.ext.autodoc", From be8c865a21a08f173e5c412034285480ea3b250b Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 13:25:19 -0700 Subject: [PATCH 08/37] Remove sphinx-book-theme upper version pinning --- .github/workflows/ci.yaml | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d0babf0..b944e24 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,7 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt pip install -e . + conda list - name: Download references from Sphinx Book Theme run: python docs/getreferences.py docs/references - name: Build Jupyter Book diff --git a/setup.py b/setup.py index ef52836..12a7ec7 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ zip_safe=True, include_package_data=True, install_requires=[ - "sphinx-book-theme>=1.0.0,<1.1.0", + "sphinx-book-theme>=1.0.0", ], packages=find_packages(), entry_points={"sphinx.html_themes": ["sphinx_pythia_theme = sphinx_pythia_theme"]}, From 003b14c926ac13fed33d0be15dd51a399d509fa4 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 13:30:14 -0700 Subject: [PATCH 09/37] Fix RTD --- .readthedocs.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 272290f..6c5515d 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,6 +5,14 @@ # Required version: 2 +build: + os: "ubuntu-20.04" + tools: + python: "mambaforge-4.10" + jobs: + post_create_environment: + - python -m pip install --no-cache-dir . + # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py From ff7377d75f29d719bd38ee98d5933743ff49934f Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 13:32:01 -0700 Subject: [PATCH 10/37] Fix sphinx-tabs --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c58bd20..8a7ae17 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,8 @@ matplotlib pandas sphinx-click sphinx-design -sphinx-panels sphinx-inline-tabs +sphinx-panels +sphinx-tabs sphinxcontrib-youtube sphinxext-opengraph From abc529ba99d24c549e9fccd2f10a062fb38010e6 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 17:19:14 -0700 Subject: [PATCH 11/37] Fix RTD by removing conda --- .readthedocs.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 6c5515d..7771cfd 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,8 +7,6 @@ version: 2 build: os: "ubuntu-20.04" - tools: - python: "mambaforge-4.10" jobs: post_create_environment: - python -m pip install --no-cache-dir . From 81e5f35e5dc22ddde6e3aef56ef82eef4c9bd914 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 17:27:03 -0700 Subject: [PATCH 12/37] Add ci fodler and docs.yml --- .readthedocs.yaml | 5 +++++ ci/docs.yml | 10 ++++++++++ requirements.txt | 2 -- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 ci/docs.yml diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 7771cfd..2e94ae4 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,6 +7,8 @@ version: 2 build: os: "ubuntu-20.04" + tools: + python: "mambaforge-4.10" jobs: post_create_environment: - python -m pip install --no-cache-dir . @@ -22,3 +24,6 @@ python: - requirements: requirements.txt - method: pip path: . + +conda: + environment: ci/docs.yml diff --git a/ci/docs.yml b/ci/docs.yml new file mode 100644 index 0000000..2a8a51b --- /dev/null +++ b/ci/docs.yml @@ -0,0 +1,10 @@ +name: sphinx-pythia-theme-docs +channels: + - conda-forge +dependencies: + - python<3.12 + - pip + - pip: + - -r ../requirements.txt + - sphinx-tabs + - sphinxcontrib-youtube \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 8a7ae17..6967f77 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,6 +7,4 @@ sphinx-click sphinx-design sphinx-inline-tabs sphinx-panels -sphinx-tabs -sphinxcontrib-youtube sphinxext-opengraph From 510ea1cf14368d51e9b36ad012cf72893ce1282c Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 17:32:32 -0700 Subject: [PATCH 13/37] Fix docs --- .readthedocs.yaml | 8 -------- ci/docs.yml | 2 -- requirements.txt | 2 ++ 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 2e94ae4..5c30b85 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -17,13 +17,5 @@ build: sphinx: configuration: docs/conf.py -# Optionally set the version of Python and requirements required to build your docs -python: - version: '3.11' - install: - - requirements: requirements.txt - - method: pip - path: . - conda: environment: ci/docs.yml diff --git a/ci/docs.yml b/ci/docs.yml index 2a8a51b..bba8e69 100644 --- a/ci/docs.yml +++ b/ci/docs.yml @@ -6,5 +6,3 @@ dependencies: - pip - pip: - -r ../requirements.txt - - sphinx-tabs - - sphinxcontrib-youtube \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 6967f77..8a7ae17 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,6 @@ sphinx-click sphinx-design sphinx-inline-tabs sphinx-panels +sphinx-tabs +sphinxcontrib-youtube sphinxext-opengraph From 400c9afa42fa5775a4597f1f9932c9fbc36537d4 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 22:21:28 -0700 Subject: [PATCH 14/37] Add environment.yml fil --- .github/workflows/ci.yaml | 61 ++++++++++++++++++++++++--------------- ci/environment.yml | 7 +++++ 2 files changed, 44 insertions(+), 24 deletions(-) create mode 100644 ci/environment.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b944e24..6bfac18 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,43 +7,51 @@ on: tags: - '*' pull_request: + workflow_dispatch: jobs: - jupyterbook: - name: Build Jupyter Book + name: Build Jupyter Book and Sphinx Docs runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 + + - name: Cancel previous runs + uses: styfle/cancel-workflow-action@0.12.0 + with: + access_token: ${{ github.token }} + + - name: checkout + uses: actions/checkout@v4 + with: + token: ${{ github.token }} + + - name: conda_setup + uses: conda-incubator/setup-miniconda@v3 with: + activate-environment: sphinx-pythia-theme_build + channel-priority: strict python-version: 3.11 - - name: Install dependencies + channels: conda-forge + environment-file: ci/environment.yml + + - name: Install sphinx-pythia-theme + run: | + python -m pip install . --no-deps + + - name: conda list run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -e . conda list + - name: Download references from Sphinx Book Theme - run: python docs/getreferences.py docs/references - - name: Build Jupyter Book - run: jupyter-book build docs + run: | + python docs/getreferences.py docs/references - sphinx: - name: Build Sphinx Docs - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.11 - - name: Install dependencies + - name: Build Jupyter Book run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -e . + jupyter-book build docs + - name: Build Sphinx documentation run: sphinx-build -b html docs docs/_build/html @@ -52,17 +60,22 @@ jobs: needs: [jupyterbook, sphinx] if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest + steps: - name: Checkout source uses: actions/checkout@v2 + - name: Set up Python uses: actions/setup-python@v2 with: python-version: 3.11 + - name: Install build dependencies run: pip install setuptools setuptools-scm wheel + - name: Build package run: python setup.py sdist bdist_wheel + - name: Publish uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/ci/environment.yml b/ci/environment.yml new file mode 100644 index 0000000..b2a9689 --- /dev/null +++ b/ci/environment.yml @@ -0,0 +1,7 @@ +name: sphinx-pythia-theme_build +channels: + - conda-forge +dependencies: + - pip + - pip: + - -r ../requirements.txt From 70e7d8aa23749f0998b020819480c06fb27bdcd4 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 22:25:36 -0700 Subject: [PATCH 15/37] Fix publish --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6bfac18..fdb0476 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,7 +57,7 @@ jobs: publish: name: Publish to PyPI - needs: [jupyterbook, sphinx] + needs: [jupyterbook] if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest From e30967cd00c85e379a1fa02459a3b16dac36ae7c Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 22:33:47 -0700 Subject: [PATCH 16/37] Remove environment and update ci.yml a bit --- .github/workflows/ci.yaml | 12 +++++------- ci/environment.yml | 7 ------- 2 files changed, 5 insertions(+), 14 deletions(-) delete mode 100644 ci/environment.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fdb0476..458b6f0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,17 +27,15 @@ jobs: with: token: ${{ github.token }} - - name: conda_setup - uses: conda-incubator/setup-miniconda@v3 + - name: Set up Python + uses: actions/setup-python@v2 with: - activate-environment: sphinx-pythia-theme_build - channel-priority: strict python-version: 3.11 - channels: conda-forge - environment-file: ci/environment.yml - - name: Install sphinx-pythia-theme + - name: Install dependencies run: | + python -m pip install --upgrade pip + pip install -r requirements.txt python -m pip install . --no-deps - name: conda list diff --git a/ci/environment.yml b/ci/environment.yml deleted file mode 100644 index b2a9689..0000000 --- a/ci/environment.yml +++ /dev/null @@ -1,7 +0,0 @@ -name: sphinx-pythia-theme_build -channels: - - conda-forge -dependencies: - - pip - - pip: - - -r ../requirements.txt From 190c2001e307482626f0c694e188212aad0afe2f Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 26 Jan 2024 22:38:26 -0700 Subject: [PATCH 17/37] Change conda list to pip list --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 458b6f0..09730aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -38,9 +38,9 @@ jobs: pip install -r requirements.txt python -m pip install . --no-deps - - name: conda list + - name: pip list run: | - conda list + pip list - name: Download references from Sphinx Book Theme run: | From eaff6893045551b36bfd2cb5ee5c42cc751b9e7a Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Mon, 29 Jan 2024 21:08:08 -0700 Subject: [PATCH 18/37] Remove sphinx inline tabs per review suggestion --- docs/_config.yml | 1 - docs/conf.py | 1 - requirements.txt | 1 - 3 files changed, 3 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index 55db0f7..08c04ab 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -104,7 +104,6 @@ sphinx: extra_extensions: - ablog - sphinx_click.ext - - sphinx_inline_tabs - sphinx.ext.autodoc - sphinx.ext.intersphinx - sphinxcontrib.bibtex diff --git a/docs/conf.py b/docs/conf.py index f2aecfe..6cd8fce 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -34,7 +34,6 @@ "sphinx_copybutton", "sphinx_design", "sphinx_external_toc", - "sphinx_inline_tabs", "sphinx_panels", "sphinx_tabs.tabs", "sphinx_thebe", diff --git a/requirements.txt b/requirements.txt index 8a7ae17..e728abe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,6 @@ matplotlib pandas sphinx-click sphinx-design -sphinx-inline-tabs sphinx-panels sphinx-tabs sphinxcontrib-youtube From a89e2d4a99908ec838cd49b8881ba927e739144f Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Mon, 29 Jan 2024 21:48:24 -0700 Subject: [PATCH 19/37] Separate pypi publishing from ci.yaml --- .github/workflows/ci.yaml | 27 ---------------- ci/pypi.yaml | 66 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 27 deletions(-) create mode 100644 ci/pypi.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 09730aa..c96da4a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,30 +52,3 @@ jobs: - name: Build Sphinx documentation run: sphinx-build -b html docs docs/_build/html - - publish: - name: Publish to PyPI - needs: [jupyterbook] - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') - runs-on: ubuntu-latest - - steps: - - name: Checkout source - uses: actions/checkout@v2 - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.11 - - - name: Install build dependencies - run: pip install setuptools setuptools-scm wheel - - - name: Build package - run: python setup.py sdist bdist_wheel - - - name: Publish - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} diff --git a/ci/pypi.yaml b/ci/pypi.yaml new file mode 100644 index 0000000..e157f7e --- /dev/null +++ b/ci/pypi.yaml @@ -0,0 +1,66 @@ +name: Upload to PyPI + +on: + release: + types: + - published + +jobs: + test-build: + if: github.repository == 'ProjectPythia/sphinx-pythia-theme' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5.0.0 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install setuptools setuptools-scm wheel twine check-manifest + + - name: Build tarball and wheels + run: | + python setup.py sdist bdist_wheel + python -m pip wheel . -w dist --no-deps + + - name: Test the built artifacts + run: | + python -m twine check --strict dist/* + pwd + if [ -f dist/sphinx-pythia-theme-0.0.0.tar.gz ]; then + echo "❌ INVALID VERSION NUMBER" + exit 1 + else + echo "✅ Looks good" + fi + - uses: actions/upload-artifact@v4 + with: + name: releases + path: dist + + publish: + needs: test-build + if: github.event_name == 'release' + runs-on: ubuntu-latest + + environment: + name: pypi + url: https://pypi.org/p/sphinx-pythia-theme + permissions: + id-token: write + + steps: + - uses: actions/download-artifact@v4 + with: + name: releases + path: dist + + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@v1.8.11 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file From b06f514e0a9035936a4f23940d14beaa297a6604 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Mon, 29 Jan 2024 21:58:52 -0700 Subject: [PATCH 20/37] Migrate PyPI publishing to build invocations --- ci/pypi.yaml | 7 ++++--- pyproject.toml | 9 ++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ci/pypi.yaml b/ci/pypi.yaml index e157f7e..5712e63 100644 --- a/ci/pypi.yaml +++ b/ci/pypi.yaml @@ -20,12 +20,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install setuptools setuptools-scm wheel twine check-manifest + python -m pip install build twine - name: Build tarball and wheels run: | - python setup.py sdist bdist_wheel - python -m pip wheel . -w dist --no-deps + git clean -xdf + git restore -SW . + python -m build - name: Test the built artifacts run: | diff --git a/pyproject.toml b/pyproject.toml index c3225b2..c85c273 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,9 @@ [build-system] -requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"] +build-backend = "setuptools.build_meta" +requires = [ + "setuptools>=42", + "setuptools-scm>=7", +] + +[tool.setuptools_scm] +fallback_version = "9999" From 94b1403f43f9460542e5bdf8b56fb792fd883636 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Mon, 29 Jan 2024 22:12:31 -0700 Subject: [PATCH 21/37] Update MANIFEST.in --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index 3939d0b..5dd0c74 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -11,6 +11,7 @@ exclude .readthedocs.yaml exclude .web-compile-config.yml exclude requirements.txt recursive-exclude ci *.yml +recursive-exclude ci *.yaml include LICENSE include MANIFEST.in From b60dea045eca0cd38d8300bcc4754713e6020e75 Mon Sep 17 00:00:00 2001 From: Orhan Eroglu <32553057+erogluorhan@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:24:31 -0700 Subject: [PATCH 22/37] Theme update - Update all the layout sections/components and css features (#59) * Re-populate layout * Remove docs-navbar block from layout * Remove docs-sidebar block from layout * Remove topbar.html block from layout * Remove _templates/prev-next.html block from layout * Add super() call to content block in layout * Add super() call to content block in layout * Cut the block content * Add banner and shim back * Add super() call back * Include _templates/prev-next.html * Add shim back * Add more into layout * Remove block docs_sidebar * Remove include topbar.html * Convert _templates/ to components/ * Remove super() call * Convert components/ to _templates/components/ * Footer and prev-next from parent * prev-next from parent * More layout * More layout * Fix super.super() call in layout * More layout * docs_navbar * docs_navbar * docs_navbar * docs_navbar * docs_navbar * docs_navbar * footer and silenced elements * docs_navbar * docs_navbar * shim and banner * --breakpoint-md to --bs-breakpoint-md * --breakpoint-md to --bs-breakpoint-md * footer * remove footer and more * Add back footer * footer * footer * footer * footer * footer * docs_body * docs_main super call * footer * footer * bd-footer * bd-footer * bd-footer * bd-footer * remove footer * add back footer * bd-footer * bd-footer super * footer * footer * footer * footer * footer * footer * footer.html * footer.html * footer.html debug * footer.html debug * footer * footer * sections/footer * footer * footer * footer-logos.html * footer-info.html * revert footer-info.html footer-logos.html * footer.html * footer.html * footer.html * footer.html * footer.html * footer.html * footer * footer * footer * footer * footer * footer * footer * layout * css * css colors * css colors * css colors * layout banner * css colors * css colors * css colors * css colors * css colors * footer.html * css * css * css * css * css * scss * css * css * css * css and scss * sphinx basic scss * sphinx basic scss * sphinx basic scss * css colors * css colors * css colors * css colors * Update docs --- docs/about.rst | 21 ++++-- docs/conf.py | 7 +- sphinx_pythia_theme/footer.html | 21 ++++-- sphinx_pythia_theme/layout.html | 70 ++++++++++++++++- sphinx_pythia_theme/page-standalone.html | 5 +- .../static/sphinx-pythia-theme.min.css | 3 +- sphinx_pythia_theme/theme.conf | 2 +- src/scss/sphinx-pythia-theme.scss | 75 ++++++++++--------- 8 files changed, 144 insertions(+), 60 deletions(-) diff --git a/docs/about.rst b/docs/about.rst index c7f4041..0d8ec83 100644 --- a/docs/about.rst +++ b/docs/about.rst @@ -75,8 +75,13 @@ Footer Bar ---------- In addition to the top navigation bar at the top of each page, the full-width footer -bar from the PyData Sphinx Theme has been readded to the bottom of every page. By default, the -footer bar only contains copyright and additional information about the Sphinx version (if configured). +bar from the PyData Sphinx Theme has been re-added to the bottom of every page. + +.. note:: + While PyData Sphinx Theme has ``footer_start``, ``footer_center``, and ``footer_end`` to set, +our theme supports only ``footer_start``, and allows to add below structures into it. + +By default, the footer bar only contains copyright and additional information about the Sphinx version (if configured). Three additional sections can be added to the footer: a *logo bar*, a *bottom navigation menu*, and an *extras* section. @@ -84,12 +89,12 @@ Footer Logo Bar ^^^^^^^^^^^^^^^ The *logo bar* section can be used to add logo images for various partner or collaboration -institutions, products, or other entities involved with site itself. These are spread out +institutions, products, or other entities involved with site itself. These are spread out evenly across the footer in a light-gray full-width box. To add logo images to the *logo bar* in the footer, use the ``footer_logos`` option of the -``html_theme_options``. The name given to each logo is used as the alternate name of -the image in HTML. +``html_theme_options`` and then add it to ``footer_start``. The name given to each logo is +used as the alternate name of the image in HTML. .. tab-set-code:: Sphinx @@ -99,7 +104,8 @@ the image in HTML. 'footer_logos': { 'name1': 'images/logo1.svg', 'name2': 'images/logo2.svg', - } + }, + "footer_start": ["footer-logos"] } .. tab-set-code:: Jupyter Book @@ -162,6 +168,7 @@ the keys in the ``navbar_links`` option above). ], }, ], + "footer_start": ["footer-menu"] } .. tab-set-code:: Jupyter Book @@ -195,7 +202,7 @@ Extra Footer The *extra* section of the footer is displayed immediately below the *info* section, and it can be set with the `extra footer `_ -(``extra_footer``) Sphinx Book Theme option. +(``extra_footer``) Sphinx Book Theme option and then added to the ``footer_start``. Special Page layouts -------------------- diff --git a/docs/conf.py b/docs/conf.py index 6cd8fce..61bd32e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -60,7 +60,7 @@ } jupyter_cache = "" -jupyter_execute_notebooks = "cache" +nb_execution_mode = "cache" execution_allow_errors = False execution_excludepatterns = [] execution_in_temp = False @@ -146,7 +146,9 @@ "use_repository_button": True, "use_download_button": True, "logo_only": True, - "logo_link": "https://sphinx-pythia-theme.readthedocs.io", + "logo": { + "link": "https://sphinx-pythia-theme.readthedocs.io", + }, "show_toc_level": 2, "navbar_align": "left", "navbar_links": [ @@ -172,6 +174,7 @@ }, "UAlbany": "images/UAlbany-A2-logo-purple-gold.svg", }, + "footer_start": ["footer-logos", "footer-menu", "footer-info", "footer-extra"], "extra_navbar": ('Theme by Project Pythia'), } diff --git a/sphinx_pythia_theme/footer.html b/sphinx_pythia_theme/footer.html index 5a1b2e9..2860483 100644 --- a/sphinx_pythia_theme/footer.html +++ b/sphinx_pythia_theme/footer.html @@ -1,9 +1,14 @@ -
-
- {% for footer_item in theme_footer_items %} - -
+ {% endif %} +{% endif %} diff --git a/sphinx_pythia_theme/layout.html b/sphinx_pythia_theme/layout.html index 56d3006..dd532ef 100644 --- a/sphinx_pythia_theme/layout.html +++ b/sphinx_pythia_theme/layout.html @@ -1 +1,69 @@ -{%- extends "sphinx_book_theme/layout.html" %} \ No newline at end of file +{%- extends "sphinx_book_theme/layout.html" %} + +{%- block body_tag %} + {# set up with scrollspy to update the toc as we scroll #} + {{ super.super() }} +{%- endblock %} + +{%- block content %} + {%- block docs_navbar %} + + {%- endblock %} + + {%- if theme_page_layouts and pagename in theme_page_layouts %} +
+ {%- else %} +
+ {%- endif %} +
+ {%- block docs_toc %} + {%- if sidebars %} + {{ super() }} + {%- else %} +
+ {%- endif %} + {%- endblock %} + + {# Main content area #} + {%- block docs_main %} + {%- if theme_page_layouts and pagename in theme_page_layouts %} + {%- include theme_page_layouts[pagename] %} + {%- else %} +
+ {%- block docs_body %} +
+
+ {{ super.super() }} +
+
+ {%- endblock %} + {{ super.super() }} +
+ {%- endif %} + {%- endblock %} + +
+
+
+ + {%- block scripts_end %} + {{ _webpack.body_post() }} + {%- endblock %} + +{%- endblock %} + +{# Use our own footer to use only footer_start and display multiple #} +{# structures in it, e.g. logos, menu, etc. #} +{%- block footer %} +
+ {% include "footer.html" %} +
+{%- endblock %} + +{# Silence the sidebars and relbars since we define our own #} +{% block header %}{% endblock %} +{% block relbar1 %}{% endblock %} +{% block relbar2 %}{% endblock %} +{% block sidebarsourcelink %}{% endblock %} diff --git a/sphinx_pythia_theme/page-standalone.html b/sphinx_pythia_theme/page-standalone.html index 23ebc23..a8689d8 100644 --- a/sphinx_pythia_theme/page-standalone.html +++ b/sphinx_pythia_theme/page-standalone.html @@ -3,8 +3,7 @@
{{ apply_denested_layout(body) }} {% if theme_show_prev_next %} - {% include "_templates/prev-next.html" %} - {% endif %} -
+ {% include "components/prev-next.html" %} + {% endif %}
diff --git a/sphinx_pythia_theme/static/sphinx-pythia-theme.min.css b/sphinx_pythia_theme/static/sphinx-pythia-theme.min.css index 29e0233..3a676d6 100644 --- a/sphinx_pythia_theme/static/sphinx-pythia-theme.min.css +++ b/sphinx_pythia_theme/static/sphinx-pythia-theme.min.css @@ -1 +1,2 @@ -@import url(sphinx-book-theme.css);:root{--spt-font-body: 'Poppins';--spt-font-headings: 'Poppins';--spt-font-footnote: 'Cormorant';--spt-color-gray-100: 248, 249, 250;--spt-color-gray-200: 233, 236, 239;--spt-color-gray-300: 222, 226, 230;--spt-color-gray-400: 206, 212, 218;--spt-color-gray-500: 173, 181, 189;--spt-color-gray-600: 108, 117, 125;--spt-color-gray-700: 73, 80, 87;--spt-color-gray-800: 52, 58, 64;--spt-color-gray-900: 33, 37, 41;--spt-color-light: var(--spt-color-gray-100);--spt-color-dark: var(--spt-color-gray-800);--spt-color-green: 0, 121, 124;--spt-color-green-lighter: 20, 141, 144;--spt-color-green-lightest: 130, 231, 234;--spt-color-blue: 26, 101, 143;--spt-color-blue-lighter: 46, 121, 163;--spt-color-blue-lightest: 156, 191, 213;--spt-color-deep-blue: 1, 33, 105;--spt-color-green-highlight: 168, 199, 0;--pst-color-primary: var(--spt-color-blue);--pst-color-primary-hover: var(--spt-color-blue-lighter);--pst-color-link: var(--pst-color-primary);--pst-color-link-hover: var(--pst-color-primary);--pst-color-headerlink: var(--spt-color-gray-500);--pst-color-headerlink-hover: var(--spt-color-gray-500);--tabs-size-label: 0.8rem !important;--tabs-color-label-active: rgba(var(--pst-color-primary), 1) !important;--tabs-color-label-inactive: rgba(var(--spt-color-blue-lightest), 1) !important}body{font-family:var(--spt-font-body),sans-serif}html{scroll-behavior:smooth;scroll-padding-top:128px}.admonition.alert-info,div.admonition.alert-info{border-color:#0c5460 !important}.admonition.alert-info .admonition-title::before,div.admonition.alert-info .admonition-title::before{color:#0c5460 !important}.admonition.alert-success,div.admonition.alert-success{border-color:#155724 !important}.admonition.alert-success .admonition-title::before,div.admonition.alert-success .admonition-title::before{color:#155724 !important}.admonition.alert-warning,div.admonition.alert-warning{border-color:#856404 !important}.admonition.alert-warning .admonition-title::before,div.admonition.alert-warning .admonition-title::before{color:#856404 !important}.admonition.alert-danger,div.admonition.alert-danger{border-color:#721c24 !important}.admonition.alert-danger .admonition-title::before,div.admonition.alert-danger .admonition-title::before{color:#721c24 !important}.bg-primary{background-color:rgba(var(--pst-color-primary), 1) !important;color:white !important}.btn-primary{background-color:rgba(var(--pst-color-primary), 1) !important;border-color:rgba(var(--pst-color-primary), 1) !important;color:white !important}.btn-primary:hover{background-color:rgba(var(--pst-color-primary-hover), 1) !important;color:white !important}.btn-outline-primary{border-color:rgba(var(--pst-color-primary), 1) !important;color:rgba(var(--pst-color-primary), 1) !important}.btn-outline-primary:hover,.show>.btn-outline-primary.dropdown-toggle{background-color:rgba(var(--pst-color-primary), 1) !important;color:white !important}.btn-link{color:rgba(var(--pst-color-primary), 1) !important}.display-1{font-size:5rem !important}.display-2{font-size:3rem !important}.display-3{font-size:2rem !important}.display-4{font-size:1.6667rem !important}.display-5{font-size:1.3333rem !important}.display-6{font-size:1rem !important}.form-control:focus{outline:none !important;box-shadow:none !important}.navbar-brand{padding:.75rem 0 !important}.row{margin-left:0 !important;margin-right:0 !important}a.badge{text-decoration:none !important}a.navbar-brand img{vertical-align:middle !important}body>div.container-fluid,body>div.container-xl{padding-right:0;padding-left:0}i.fab,i.far,i.fas{font-size:70%}a.headerlink i.fab,a.headerlink i.far,a.headerlink i.fas{position:absolute;top:50%;transform:translateY(-50%)}a.headerlink{position:relative;text-decoration:none;font-size:unset !important;padding:0 0.7rem !important}a.headerlink:hover{color:rgba(var(--spt-color-gray-500), 1);background-color:transparent}div.highlight pre{border:1px solid rgba(var(--spt-color-gray-300), 1) !important;border-radius:4px !important;background-color:rgba(var(--spt-color-gray-200), 1) !important}.bd-sidebar .nav li>a{padding-top:0.1rem;padding-bottom:0.1rem}.bd-toc nav>.nav{border-left:1px solid #eee;border-bottom:1px solid #eee;border-radius:0 0 0 6px;padding-bottom:0.5em}.prev-next-area{margin:2rem auto 0 auto;border-top:1px solid rgba(var(--spt-color-gray-300), 1);max-width:calc(0.5 * (var(--breakpoint-md) + var(--breakpoint-lg)))}.prev-next-area i{font-size:1.1rem;color:rgba(var(--spt-color-gray-600), 1)}.prev-next-area a p.prev-next-title{font-size:1rem;font-weight:600;color:rgba(var(--spt-color-gray-600), 1)}#banner{margin-top:var(--pst-header-height) !important}#site-navigation{top:var(--pst-header-height) !important;height:calc(100vh - var(--pst-header-height)) !important;padding-top:0}#main-content{min-height:calc(100vh - var(--pst-header-height))}.topbar{top:var(--pst-header-height) !important;padding:0 !important}.topbar-main button:focus{outline:none !important}.cell .cell_input,.cell .cell_output{padding:0 !important}.cell .cell_input{border:1px solid rgba(var(--spt-color-gray-300), 1) !important;border-radius:4px !important;border-left-color:rgba(var(--pst-color-primary), 1) !important;border-left-width:medium !important;background-color:rgba(var(--spt-color-gray-200), 1) !important}.cell .cell_input pre{border:none !important;background-color:rgba(var(--spt-color-gray-200), 1) !important}.cell .cell_output{border:none !important}.cell .cell_output pre{border:1px solid rgba(var(--spt-color-gray-300), 1) !important;border-radius:4px !important;background-color:rgba(var(--spt-color-gray-200), 1) !important}.tabbed-content{box-shadow:0 -0.0625rem var(--tabs-color-overline) !important;padding-bottom:0 !important}.tabbed-set>label{padding:0 1rem !important;margin:0 !important}.thebe-launch-button{height:2.2em !important;font-size:.8em !important;border:1px solid rgba(var(--spt-color-gray-600), 1) !important;border-radius:4px !important;color:rgba(var(--spt-color-gray-600), 1)}#shim{padding:0;margin-top:var(--pst-header-height)}#navbar-main{z-index:5000;padding-left:15px;padding-right:15px}#navbar-main .container-xl{padding:0}#navbar-icon-links i:before{color:var(--spt-color-light) !important}main.standalone-main{padding:0 !important;background-color:white}main.standalone-main div.sectionwrapper-1,main.standalone-main div.sectionwrapper-2{color:rgba(var(--spt-color-dark), 1)}main.standalone-main div.section-1,main.standalone-main div.section-2{position:relative;padding-top:1rem;padding-bottom:1rem;max-width:calc(0.5 * (var(--breakpoint-md) + var(--breakpoint-lg)))}main.standalone-main div.section-1 h6,main.standalone-main div.section-1 .h6,main.standalone-main div.section-1 h5,main.standalone-main div.section-1 .h5,main.standalone-main div.section-1 h4,main.standalone-main div.section-1 .h4,main.standalone-main div.section-1 h3,main.standalone-main div.section-1 .h3,main.standalone-main div.section-1 h2,main.standalone-main div.section-1 .h2,main.standalone-main div.section-1 h1,main.standalone-main div.section-1 .h1,main.standalone-main div.section-2 h6,main.standalone-main div.section-2 .h6,main.standalone-main div.section-2 h5,main.standalone-main div.section-2 .h5,main.standalone-main div.section-2 h4,main.standalone-main div.section-2 .h4,main.standalone-main div.section-2 h3,main.standalone-main div.section-2 .h3,main.standalone-main div.section-2 h2,main.standalone-main div.section-2 .h2,main.standalone-main div.section-2 h1,main.standalone-main div.section-2 .h1{margin-top:0;margin-bottom:0.5rem}main.standalone-main div.section-1 h3,main.standalone-main div.section-1 .h3,main.standalone-main div.section-1 h4,main.standalone-main div.section-1 .h4,main.standalone-main div.section-1 h5,main.standalone-main div.section-1 .h5,main.standalone-main div.section-1 h6,main.standalone-main div.section-1 .h6,main.standalone-main div.section-2 h3,main.standalone-main div.section-2 .h3,main.standalone-main div.section-2 h4,main.standalone-main div.section-2 .h4,main.standalone-main div.section-2 h5,main.standalone-main div.section-2 .h5,main.standalone-main div.section-2 h6,main.standalone-main div.section-2 .h6{padding:1rem 0}main.standalone-main div.section-title-wrapper{display:flex;justify-content:flex-start}main.standalone-main div.section-title{padding:0 4rem 0.1rem 0;margin:0 0 1.6rem 0;border-bottom:2px solid rgba(var(--spt-color-deep-blue), 1)}main.banner-main{padding:0 !important}main.banner-main #main-content{padding:0 !important}main.banner-main div.sectionwrapper-1{position:relative;background-size:cover;background-position:center center;color:rgba(var(--spt-color-light), 1);background-color:rgba(var(--spt-color-gray-700), 1)}main.banner-main div.sectionwrapper-1 div.section-banner-caption{position:absolute;right:0;bottom:0;font-size:0.8rem;opacity:0.6;padding-right:0.5rem}main.banner-main div.sectionwrapper-2{color:rgba(var(--spt-color-dark), 1);background-color:rgba(var(--spt-color-light), 1)}main.banner-main div.sectionwrapper-2:nth-child(even){background-color:rgba(var(--spt-color-gray-300), 1)}main.banner-main div.section-1,main.banner-main div.section-2{position:relative;padding-top:7rem;padding-bottom:7rem;max-width:calc(0.5 * (var(--breakpoint-md) + var(--breakpoint-lg)))}main.banner-main div.section-1 h3,main.banner-main div.section-1 h4,main.banner-main div.section-1 h5,main.banner-main div.section-1 h6,main.banner-main div.section-2 h3,main.banner-main div.section-2 h4,main.banner-main div.section-2 h5,main.banner-main div.section-2 h6{padding:2rem 0 1rem 0;text-align:center}main.banner-main div.section-title-wrapper{display:flex;justify-content:center}main.banner-main div.section-title{padding:0 4rem 1rem 4rem;margin-bottom:3rem;border-bottom:2px solid rgba(var(--spt-color-deep-blue), 1)}main.banner-main p{font-size:1.25rem;font-weight:300}main.banner-main div.section.dark-banner h1,main.banner-main div.section.dark-banner h2,main.banner-main div.section.dark-banner h3,main.banner-main div.section.dark-banner h4,main.banner-main div.section.dark-banner h5,main.banner-main div.section.dark-banner h6{color:var(--spt-color-light) !important}main.banner-main div.section.dark-banner p{color:var(--spt-color-light) !important}.footer{color:rgba(var(--spt-color-light), 1);font-size:0.8rem;font-family:var(--spt-font-footnote);padding:0}.footer h1,.footer h2,.footer h3,.footer h4,.footer h5,.footer h6,.footer p,.footer a{color:rgba(var(--spt-color-light), 1);font-family:var(--spt-font-footnote)}.footer h1,.footer h2,.footer h3,.footer h4,.footer h5,.footer h6{font-size:1rem;margin-bottom:5px}.footer p{font-size:0.8rem}.footer .footer-logos{background-color:rgba(var(--spt-color-gray-200), 1)}.footer .footer-info,.footer .footer-menu{color:rgba(var(--spt-color-gray-400), 1);background-color:rgba(var(--spt-color-dark), 1);padding-top:0.4rem;padding-bottom:0.4rem}.footer .footer-info li,.footer .footer-menu li{line-height:1rem;margin-bottom:5px}.footer .footer-extra{background-color:rgba(var(--spt-color-gray-700), 1);padding-top:1rem;padding-bottom:1rem}.footer .footer-extra img{height:60px}.iframe,.iframe-4x3,.iframe-16x9{position:relative;height:0;width:75%;margin-bottom:1rem;margin-left:auto;margin-right:auto}.iframe iframe,.iframe-4x3 iframe,.iframe-16x9 iframe{border:0;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.iframe-16x9{padding-bottom:calc(0.75 * 56.25%)}.iframe-4x3{padding-bottom:calc(0.75 * 75%)} +@import url(sphinx-book-theme.css);:root{--spt-font-body: 'Poppins';--spt-font-headings: 'Poppins';--spt-font-footnote: 'Cormorant';--spt-color-gray-100: 248, 249, 250;--spt-color-gray-200: 233, 236, 239;--spt-color-gray-300: 222, 226, 230;--spt-color-gray-400: 206, 212, 218;--spt-color-gray-500: 173, 181, 189;--spt-color-gray-600: 108, 117, 125;--spt-color-gray-700: 73, 80, 87;--spt-color-gray-800: 52, 58, 64;--spt-color-gray-900: 33, 37, 41;--spt-color-light: var(--spt-color-gray-100);--spt-color-dark: var(--spt-color-gray-800);--spt-color-green: 0, 121, 124;--spt-color-green-lighter: 20, 141, 144;--spt-color-green-lightest: 130, 231, 234;--spt-color-blue: 26, 101, 143;--spt-color-blue-lighter: 46, 121, 163;--spt-color-blue-lightest: 156, 191, 213;--spt-color-deep-blue: 1, 33, 105;--spt-color-green-highlight: 168, 199, 0;--pst-color-primary: var(--spt-color-blue) !important;--pst-color-primary-hover: var(--spt-color-blue-lighter) !important;--pst-color-secondary: var(--spt-color-blue-lightest) !important;--pst-color-link: var(--pst-color-primary) !important;--pst-color-link-hover: var(--pst-color-secondary) !important;--pst-color-headerlink: var(--spt-color-gray-300) !important;--pst-color-headerlink-hover: var(--spt-color-gray-100) !important;--tabs-size-label: 0.8rem !important;--tabs-color-label-active: rgba(var(--pst-color-primary), 1) !important;--tabs-color-label-inactive: rgba(var(--spt-color-blue-lightest), 1) !important +}body{font-family:var(--spt-font-body),sans-serif}html{scroll-behavior:smooth;scroll-padding-top:128px}.admonition.alert-info,div.admonition.alert-info{border-color:#0c5460 !important}.admonition.alert-info .admonition-title::before,div.admonition.alert-info .admonition-title::before{color:#0c5460 !important}.admonition.alert-success,div.admonition.alert-success{border-color:#155724 !important}.admonition.alert-success .admonition-title::before,div.admonition.alert-success .admonition-title::before{color:#155724 !important}.admonition.alert-warning,div.admonition.alert-warning{border-color:#856404 !important}.admonition.alert-warning .admonition-title::before,div.admonition.alert-warning .admonition-title::before{color:#856404 !important}.admonition.alert-danger,div.admonition.alert-danger{border-color:#721c24 !important}.admonition.alert-danger .admonition-title::before,div.admonition.alert-danger .admonition-title::before{color:#721c24 !important}.bg-primary{background-color:rgba(var(--pst-color-primary), 1) !important;color:white !important}.btn-primary{background-color:rgba(var(--pst-color-primary), 1) !important;border-color:rgba(var(--pst-color-primary), 1) !important;color:white !important}.btn-primary:hover{background-color:rgba(var(--pst-color-primary-hover), 1) !important;color:white !important}.btn-outline-primary{border-color:rgba(var(--pst-color-primary), 1) !important;color:rgba(var(--pst-color-primary), 1) !important}.btn-outline-primary:hover,.show>.btn-outline-primary.dropdown-toggle{background-color:rgba(var(--pst-color-primary), 1) !important;color:white !important}.btn-link{color:rgba(var(--pst-color-primary), 1) !important}.display-1{font-size:5rem !important}.display-2{font-size:3rem !important}.display-3{font-size:2rem !important}.display-4{font-size:1.6667rem !important}.display-5{font-size:1.3333rem !important}.display-6{font-size:1rem !important}.form-control:focus{outline:none !important;box-shadow:none !important}.navbar-brand{padding:.75rem 0 !important}.row{margin-left:0 !important;margin-right:0 !important}a.badge{text-decoration:none !important}a.navbar-brand img{vertical-align:middle !important}body>div.container-fluid,body>div.container-xl{padding-right:0;padding-left:0}i.fab,i.far,i.fas{font-size:70%}a.headerlink i.fab,a.headerlink i.far,a.headerlink i.fas{position:absolute;top:50%;transform:translateY(-50%)}a.headerlink{position:relative;text-decoration:none;font-size:unset !important;padding:0 0.7rem !important}a.headerlink:hover{color:rgba(var(--spt-color-gray-500), 1);background-color:transparent}div.highlight pre{border:1px solid rgba(var(--spt-color-gray-300), 1) !important;border-radius:4px !important;background-color:rgba(var(--spt-color-gray-200), 1) !important}.bd-sidebar .nav li>a{padding-top:0.1rem;padding-bottom:0.1rem}.bd-toc nav>.nav{border-left:1px solid #eee;border-bottom:1px solid #eee;border-radius:0 0 0 6px;padding-bottom:0.5em}.prev-next-area{margin:2rem auto 0 auto;border-top:1px solid rgba(var(--spt-color-gray-300), 1);max-width:calc(0.5 * (var(--bs-breakpoint-md) + var(--bs-breakpoint-lg)))}.prev-next-area i{font-size:1.1rem;color:rgba(var(--spt-color-gray-600), 1)}.prev-next-area a p.prev-next-title{font-size:1rem;font-weight:600;color:rgba(var(--spt-color-gray-600), 1)}#banner{margin-top:var(--pst-header-height) !important}#site-navigation{top:var(--pst-header-height) !important;height:calc(100vh - var(--pst-header-height)) !important;padding-top:0}#main-content{min-height:calc(100vh - var(--pst-header-height))}.topbar{top:var(--pst-header-height) !important;padding:0 !important}.topbar-main button:focus{outline:none !important}.cell .cell_input,.cell .cell_output{padding:0 !important}.cell .cell_input{border:1px solid rgba(var(--spt-color-gray-300), 1) !important;border-radius:4px !important;border-left-color:rgba(var(--pst-color-primary), 1) !important;border-left-width:medium !important;background-color:rgba(var(--spt-color-gray-200), 1) !important}.cell .cell_input pre{border:none !important;background-color:rgba(var(--spt-color-gray-200), 1) !important}.cell .cell_output{border:none !important}.cell .cell_output pre{border:1px solid rgba(var(--spt-color-gray-300), 1) !important;border-radius:4px !important;background-color:rgba(var(--spt-color-gray-200), 1) !important}.tabbed-content{box-shadow:0 -0.0625rem var(--tabs-color-overline) !important;padding-bottom:0 !important}.tabbed-set>label{padding:0 1rem !important;margin:0 !important}.thebe-launch-button{height:2.2em !important;font-size:.8em !important;border:1px solid rgba(var(--spt-color-gray-600), 1) !important;border-radius:4px !important;color:rgba(var(--spt-color-gray-600), 1)}#shim{padding:0;margin-top:var(--pst-header-height)}#navbar-main{z-index:5000;padding-left:15px;padding-right:15px}#navbar-main .container-xl{padding:0}#navbar-icon-links i:before{color:var(--spt-color-light) !important}main.standalone-main{padding:0 !important;background-color:white}main.standalone-main div.sectionwrapper-1,main.standalone-main div.sectionwrapper-2{color:rgba(var(--spt-color-dark), 1)}main.standalone-main div.section-1,main.standalone-main div.section-2{position:relative;padding-top:1rem;padding-bottom:1rem;max-width:calc(0.5 * (var(--bs-breakpoint-md) + var(--bs-breakpoint-lg)))}main.standalone-main div.section-1 h6,main.standalone-main div.section-1 .h6,main.standalone-main div.section-1 h5,main.standalone-main div.section-1 .h5,main.standalone-main div.section-1 h4,main.standalone-main div.section-1 .h4,main.standalone-main div.section-1 h3,main.standalone-main div.section-1 .h3,main.standalone-main div.section-1 h2,main.standalone-main div.section-1 .h2,main.standalone-main div.section-1 h1,main.standalone-main div.section-1 .h1,main.standalone-main div.section-2 h6,main.standalone-main div.section-2 .h6,main.standalone-main div.section-2 h5,main.standalone-main div.section-2 .h5,main.standalone-main div.section-2 h4,main.standalone-main div.section-2 .h4,main.standalone-main div.section-2 h3,main.standalone-main div.section-2 .h3,main.standalone-main div.section-2 h2,main.standalone-main div.section-2 .h2,main.standalone-main div.section-2 h1,main.standalone-main div.section-2 .h1{margin-top:0;margin-bottom:0.5rem}main.standalone-main div.section-1 h3,main.standalone-main div.section-1 .h3,main.standalone-main div.section-1 h4,main.standalone-main div.section-1 .h4,main.standalone-main div.section-1 h5,main.standalone-main div.section-1 .h5,main.standalone-main div.section-1 h6,main.standalone-main div.section-1 .h6,main.standalone-main div.section-2 h3,main.standalone-main div.section-2 .h3,main.standalone-main div.section-2 h4,main.standalone-main div.section-2 .h4,main.standalone-main div.section-2 h5,main.standalone-main div.section-2 .h5,main.standalone-main div.section-2 h6,main.standalone-main div.section-2 .h6{padding:1rem 0}main.standalone-main div.section-title-wrapper{display:flex;justify-content:flex-start}main.standalone-main div.section-title{padding:0 4rem 0.1rem 0;margin:0 0 1.6rem 0;border-bottom:2px solid rgba(var(--spt-color-deep-blue), 1)}main.banner-main{padding:0 !important}main.banner-main #main-content{padding:0 !important}main.banner-main div.sectionwrapper-1{position:relative;background-size:cover;background-position:center center;color:rgba(var(--spt-color-light), 1);background-color:rgba(var(--spt-color-gray-700), 1)}main.banner-main div.sectionwrapper-1 div.section-banner-caption{position:absolute;right:0;bottom:0;font-size:0.8rem;opacity:0.6;padding-right:0.5rem}main.banner-main div.sectionwrapper-2{color:rgba(var(--spt-color-dark), 1);background-color:rgba(var(--spt-color-light), 1)}main.banner-main div.sectionwrapper-2:nth-child(even){background-color:rgba(var(--spt-color-gray-300), 1)}main.banner-main div.section-1,main.banner-main div.section-2{position:relative;padding-top:7rem;padding-bottom:7rem;max-width:calc(0.5 * (var(--bs-breakpoint-md) + var(--bs-breakpoint-lg)))}main.banner-main div.section-1 h3,main.banner-main div.section-1 h4,main.banner-main div.section-1 h5,main.banner-main div.section-1 h6,main.banner-main div.section-2 h3,main.banner-main div.section-2 h4,main.banner-main div.section-2 h5,main.banner-main div.section-2 h6{padding:2rem 0 1rem 0;text-align:center}main.banner-main div.section-title-wrapper{display:flex;justify-content:center}main.banner-main div.section-title{padding:0 4rem 1rem 4rem;margin-bottom:3rem;border-bottom:2px solid rgba(var(--spt-color-deep-blue), 1)}main.banner-main p{font-size:1.25rem;font-weight:300}main.banner-main div.section.dark-banner h1,main.banner-main div.section.dark-banner h2,main.banner-main div.section.dark-banner h3,main.banner-main div.section.dark-banner h4,main.banner-main div.section.dark-banner h5,main.banner-main div.section.dark-banner h6{color:var(--spt-color-light) !important}main.banner-main div.section.dark-banner p{color:var(--spt-color-light) !important}.bd-footer{color:rgba(var(--spt-color-light), 1);font-size:0.8rem;font-family:var(--spt-font-footnote);padding:0}.bd-footer h1,.bd-footer h2,.bd-footer h3,.bd-footer h4,.bd-footer h5,.bd-footer h6,.bd-footer p,.bd-footer a{color:rgba(var(--spt-color-light), 1);font-family:var(--spt-font-footnote)}.bd-footer h1,.bd-footer h2,.bd-footer h3,.bd-footer h4,.bd-footer h5,.bd-footer h6{font-size:1rem;margin-bottom:5px}.bd-footer p{font-size:0.8rem}.bd-footer .footer-logos{background-color:rgba(var(--spt-color-gray-200), 1)}.bd-footer .footer-info,.bd-footer .footer-menu{color:rgba(var(--spt-color-gray-400), 1);background-color:rgba(var(--spt-color-dark), 1);padding-top:0.4rem;padding-bottom:0.4rem}.bd-footer .footer-info li,.bd-footer .footer-menu li{line-height:1rem;margin-bottom:5px}.bd-footer .footer-extra{background-color:rgba(var(--spt-color-gray-700), 1);padding-top:1rem;padding-bottom:1rem}.bd-footer .footer-extra img{height:60px}.iframe,.iframe-4x3,.iframe-16x9{position:relative;height:0;width:75%;margin-bottom:1rem;margin-left:auto;margin-right:auto}.iframe iframe,.iframe-4x3 iframe,.iframe-16x9 iframe{border:0;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.iframe-16x9{padding-bottom:calc(0.75 * 56.25%)}.iframe-4x3{padding-bottom:calc(0.75 * 75%)} diff --git a/sphinx_pythia_theme/theme.conf b/sphinx_pythia_theme/theme.conf index 7c5c4e8..0df26b0 100644 --- a/sphinx_pythia_theme/theme.conf +++ b/sphinx_pythia_theme/theme.conf @@ -12,5 +12,5 @@ navbar_center = navbar-menu.html navbar_links = footer_logos = footer_menu = -footer_items = footer-logos.html, footer-menu.html, footer-info.html, footer-extra.html +footer-items__start = footer-logos.html, footer-menu.html, footer-info.html, footer-extra.html page_sidebar_items = page-toc.html diff --git a/src/scss/sphinx-pythia-theme.scss b/src/scss/sphinx-pythia-theme.scss index b1bcf84..84a04a5 100644 --- a/src/scss/sphinx-pythia-theme.scss +++ b/src/scss/sphinx-pythia-theme.scss @@ -1,43 +1,44 @@ @import 'sphinx-book-theme.css'; -:root { - --spt-font-body: 'Poppins'; - --spt-font-headings: 'Poppins'; - --spt-font-footnote: 'Cormorant'; - - --spt-color-gray-100: 248, 249, 250; - --spt-color-gray-200: 233, 236, 239; - --spt-color-gray-300: 222, 226, 230; - --spt-color-gray-400: 206, 212, 218; - --spt-color-gray-500: 173, 181, 189; - --spt-color-gray-600: 108, 117, 125; - --spt-color-gray-700: 73, 80, 87; - --spt-color-gray-800: 52, 58, 64; - --spt-color-gray-900: 33, 37, 41; - --spt-color-light: var(--spt-color-gray-100); - --spt-color-dark: var(--spt-color-gray-800); - --spt-color-green: 0, 121, 124; - --spt-color-green-lighter: 20, 141, 144; - --spt-color-green-lightest: 130, 231, 234; - --spt-color-blue: 26, 101, 143; - --spt-color-blue-lighter: 46, 121, 163; - --spt-color-blue-lightest: 156, 191, 213; - --spt-color-deep-blue: 1, 33, 105; - --spt-color-green-highlight: 168, 199, 0; - - --pst-color-primary: var(--spt-color-blue); - --pst-color-primary-hover: var(--spt-color-blue-lighter); - --pst-color-link: var(--pst-color-primary); - --pst-color-link-hover: var(--pst-color-primary); - --pst-color-headerlink: var(--spt-color-gray-500); - --pst-color-headerlink-hover: var(--spt-color-gray-500); - - --tabs-size-label: 0.8rem !important; - --tabs-color-label-active: rgba(var(--pst-color-primary), 1) !important; - --tabs-color-label-inactive: rgba(var(--spt-color-blue-lightest), 1) !important; +:root{ + --spt-font-body: 'Poppins'; + --spt-font-headings: 'Poppins'; + --spt-font-footnote: 'Cormorant'; + + --spt-color-gray-100: 248, 249, 250; + --spt-color-gray-200: 233, 236, 239; + --spt-color-gray-300: 222, 226, 230; + --spt-color-gray-400: 206, 212, 218; + --spt-color-gray-500: 173, 181, 189; + --spt-color-gray-600: 108, 117, 125; + --spt-color-gray-700: 73, 80, 87; + --spt-color-gray-800: 52, 58, 64; + --spt-color-gray-900: 33, 37, 41; + --spt-color-light: var(--spt-color-gray-100); + --spt-color-dark: var(--spt-color-gray-800); + --spt-color-green: 0, 121, 124; + --spt-color-green-lighter: 20, 141, 144; + --spt-color-green-lightest: 130, 231, 234; + --spt-color-blue: 26, 101, 143; + --spt-color-blue-lighter: 46, 121, 163; + --spt-color-blue-lightest: 156, 191, 213; + --spt-color-deep-blue: 1, 33, 105; + --spt-color-green-highlight: 168, 199, 0; + + --pst-color-primary: var(--spt-color-blue) !important; + --pst-color-primary-hover: var(--spt-color-blue-lighter) !important; + --pst-color-secondary: var(--spt-color-blue-lightest) !important; + --pst-color-link: var(--pst-color-primary) !important; + --pst-color-link-hover: var(--pst-color-secondary) !important; + --pst-color-headerlink: var(--spt-color-gray-300) !important; + --pst-color-headerlink-hover: var(--spt-color-gray-100) !important; + + --tabs-size-label: 0.8rem !important; + --tabs-color-label-active: rgba(var(--pst-color-primary), 1) !important; + --tabs-color-label-inactive: rgba(var(--spt-color-blue-lightest), 1) !important } -$document-width: calc(0.5 * (var(--breakpoint-md) + var(--breakpoint-lg))); +$document-width: calc(0.5 * (var(--bs-breakpoint-md) + var(--bs-breakpoint-lg))); @import "general"; @import "bootstrap4"; @@ -193,7 +194,7 @@ main.banner-main { // FOOTER -------------------------------------------------------------------- -.footer { +.bd-footer { color: rgba(var(--spt-color-light), 1); font-size: 0.8rem; font-family: var(--spt-font-footnote); From ae0cc04d7b9edf58e38d6562b4b81931bef320b1 Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Tue, 20 Feb 2024 22:54:52 -0700 Subject: [PATCH 23/37] Fix navbar colors --- .pre-commit-config.yaml | 1 + sphinx_pythia_theme/layout.html | 2 +- .../static/sphinx-pythia-theme.min.css | 354 +++++++++++++++++- 3 files changed, 354 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95c98ea..d06127f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,7 @@ exclude: > (?x)^( \.vscode/settings\.json| + sphinx_pythia_theme\static\sphinx-pythia-theme.min.css )$ repos: diff --git a/sphinx_pythia_theme/layout.html b/sphinx_pythia_theme/layout.html index dd532ef..a326792 100644 --- a/sphinx_pythia_theme/layout.html +++ b/sphinx_pythia_theme/layout.html @@ -7,7 +7,7 @@ {%- block content %} {%- block docs_navbar %} -