From ee141e62fa2ebd72a3efee93a81b9a0c4f871166 Mon Sep 17 00:00:00 2001 From: Jake Herrmann Date: Thu, 28 Sep 2023 11:00:59 -0800 Subject: [PATCH 01/19] 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 02/19] 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 %} - -
- - -