From 8804a953ee8e04f903e1043dcb0c2c1a18355e2a Mon Sep 17 00:00:00 2001 From: David Larlet Date: Tue, 28 Nov 2023 21:40:09 -0500 Subject: [PATCH] [docs] Adapt primary color to match uMap one --- docs/stylesheets/extra.css | 3 +++ mkdocs.yml | 17 ++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 docs/stylesheets/extra.css diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 00000000..1434324f --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,3 @@ +:root { + --md-primary-fg-color: #323e56; +} diff --git a/mkdocs.yml b/mkdocs.yml index d6555821..89df7ac0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -6,11 +6,11 @@ nav: - Home: index.md - Installation: install.md - Architecture: - - Frontend (JS): architecture/frontend.md + - Frontend (JS): architecture/frontend.md - Deployment: - - Ubuntu Server Howto: deploy/ubuntu.md - - Docker: deploy/docker.md - - Windows: deploy/windows.md + - Ubuntu Server Howto: deploy/ubuntu.md + - Docker: deploy/docker.md + - Windows: deploy/windows.md - Configuration: settings.md - Administration: administration.md - Contributing: contributing.md @@ -22,17 +22,20 @@ theme: palette: - scheme: 'default' media: '(prefers-color-scheme: light)' + primary: 'custom' toggle: icon: 'material/lightbulb' - name: "Switch to dark mode" + name: 'Switch to dark mode' - scheme: 'slate' media: '(prefers-color-scheme: dark)' - primary: 'blue' + primary: 'custom' toggle: icon: 'material/lightbulb-outline' name: 'Switch to light mode' features: - - navigation.sections + - navigation.sections +extra_css: + - stylesheets/extra.css markdown_extensions: - pymdownx.magiclink - admonition