From f12d2eb81799ac10bf8d650d067806d25c1b8e6f Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Mon, 22 Jan 2024 13:34:06 +0100 Subject: [PATCH] add auto theme next to light and dark mode --- docs/architecture/components/index.md | 2 +- mkdocs.yml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/architecture/components/index.md b/docs/architecture/components/index.md index 3168dc5..bf0790f 100644 --- a/docs/architecture/components/index.md +++ b/docs/architecture/components/index.md @@ -24,4 +24,4 @@ To interact with these external systems, specific plugins or wrappers are in pla An overview of how these components interact is depicted in the following diagram: -{ width=300} +{width=300} diff --git a/mkdocs.yml b/mkdocs.yml index 549609f..b23f839 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -5,8 +5,8 @@ site_author: GÉANT Orchestration and Automation Team site_description: General documentation for the GÉANT Automation Platform # Repository -repo_name: goat/gap/geant-automation-platform -repo_url: https://gitlab.software.geant.org/goat/gap/geant-automation-platform +repo_name: goat/gap/geant-service-orchestrator +repo_url: https://gitlab.software.geant.org/goat/gap/geant-service-orchestrator # Theme theme: @@ -25,6 +25,10 @@ theme: - navigation.indexes - content.code.copy palette: + - media: "(prefers-color-scheme)" + toggle: + icon: material/auto-mode + name: Switch to light mode - media: "(prefers-color-scheme: light)" scheme: geant primary: custom @@ -36,7 +40,7 @@ theme: primary: custom toggle: icon: material/weather-night - name: Switch to light mode + name: Switch to system preference extra_css: - assets/stylesheets/extra.css -- GitLab