From 4cf04635407b4c209341477f2ca466422116c909 Mon Sep 17 00:00:00 2001 From: Eric Bouchut Date: Wed, 30 Oct 2024 17:52:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Show=20a=20link=20to=20Trio=20Gi?= =?UTF-8?q?tHub=20repo=20instead=20of=20TrioDocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use nightscout/Trio instead of `nightscout/trio-docs` The overridden template is used in the header, footer and navigation (on small screens). Fixes #92 --- mkdocs.yml | 2 +- overrides/partials/source.html | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 overrides/partials/source.html diff --git a/mkdocs.yml b/mkdocs.yml index b86929f9..b251e901 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -102,7 +102,7 @@ extra_javascript: extra: social: - icon: fontawesome/brands/github - link: https://github.com/nightscout/trio-docs + link: https://github.com/nightscout/Trio name: Trio on GitHub - icon: fontawesome/brands/discord link: https://discord.gg/FnwFEFUwXE diff --git a/overrides/partials/source.html b/overrides/partials/source.html new file mode 100644 index 00000000..8949bb3b --- /dev/null +++ b/overrides/partials/source.html @@ -0,0 +1,8 @@ +{#- Override mkdocs-material theme to show the nightscout/Trio GitHub repository instead nightscout/trio-docs -#} + +
+ {% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %} {% + include ".icons/" ~ icon ~ ".svg" %} +
+
nightscout/Trio
+