From f4804ae1c40abb12064fb297df5fd8dc577764a3 Mon Sep 17 00:00:00 2001 From: Joseph H Kennedy Date: Thu, 17 Mar 2022 14:13:54 -0800 Subject: [PATCH 01/32] sleep and upgrad e pip to avoid race conditions --- .github/workflows/tag-and-distribute.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tag-and-distribute.yml b/.github/workflows/tag-and-distribute.yml index d69eb96..351b24e 100644 --- a/.github/workflows/tag-and-distribute.yml +++ b/.github/workflows/tag-and-distribute.yml @@ -98,4 +98,6 @@ jobs: - name: Pip install ${{ needs.package.outputs.SDIST_VERSION }} shell: bash -l {0} run: | + sleep 30s + python -m pip install --upgrade pip python -m pip install mkdocs-asf-theme==${{ needs.package.outputs.SDIST_VERSION }} From ee141e62fa2ebd72a3efee93a81b9a0c4f871166 Mon Sep 17 00:00:00 2001 From: Jake Herrmann Date: Thu, 28 Sep 2023 11:00:59 -0800 Subject: [PATCH 02/32] pin `mkdocs-material` to latest version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1f76b24..861b458 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ install_requires=[ 'mkdocs', - 'mkdocs-material>=6.2.1,<7.0', + 'mkdocs-material==9.4.2', ], packages=find_packages(), From 9cef4fa24688b782db48f3dc14b758dbdb7ec52e Mon Sep 17 00:00:00 2001 From: Jake Herrmann Date: Fri, 29 Sep 2023 11:59:20 -0800 Subject: [PATCH 03/32] update header --- asf_theme/partials/header.html | 102 +++++++++++++++++++++------------ 1 file changed, 66 insertions(+), 36 deletions(-) diff --git a/asf_theme/partials/header.html b/asf_theme/partials/header.html index 33e3d52..fd8ced6 100644 --- a/asf_theme/partials/header.html +++ b/asf_theme/partials/header.html @@ -1,5 +1,5 @@ - -{% set site_url = config.site_url | default(nav.homepage.url, true) | url %} -{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %} - {% set site_url = site_url ~ "/index.html" %} + +{% set class = "md-header" %} +{% if "navigation.tabs.sticky" in features %} + {% set class = class ~ " md-header--shadow md-header--lifted" %} +{% elif "navigation.tabs" not in features %} + {% set class = class ~ " md-header--shadow" %} {% endif %} - -
- - -