From d6b80bf061c7afec9400bcdcf0078e26ca5bc157 Mon Sep 17 00:00:00 2001 From: femmefaytale Date: Wed, 9 Mar 2022 15:34:24 +0000 Subject: [PATCH] enable theme cutsom directory and re-arrange search & repo blocks --- custom_theme/partials/header.html | 87 +++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 88 insertions(+) create mode 100644 custom_theme/partials/header.html diff --git a/custom_theme/partials/header.html b/custom_theme/partials/header.html new file mode 100644 index 0000000..49fabe8 --- /dev/null +++ b/custom_theme/partials/header.html @@ -0,0 +1,87 @@ +{#- + This file was copied from the Material theme + You can find the file in .venv/lib/python3.10/site-packages/material/partials/header.html +-#} +{% set class = "md-header" %} +{% if "navigation.tabs.sticky" in features %} + {% set class = class ~ " md-header--lifted" %} +{% endif %} +
+ + {% if "navigation.tabs.sticky" in features %} + {% if "navigation.tabs" in features %} + {% include "partials/tabs.html" %} + {% endif %} + {% endif %} +
diff --git a/mkdocs.yml b/mkdocs.yml index 732d34f..a1d0388 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -17,6 +17,7 @@ theme: accent: purple logo: img/favicon.ico favicon: img/favicon.ico + custom_dir: custom_theme/ copyright: Copyleft 🄯 2022 Co-op Cloud