From 486feb07e948281af2de29538ddb5550446c4846 Mon Sep 17 00:00:00 2001 From: Bionus Date: Sun, 14 Jan 2024 18:42:10 +0100 Subject: [PATCH] docs: update mkdocs-material to 9.5 --- .github/workflows/docs.yml | 2 +- mkdocs.yml | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 58434928..fb89cd9d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,7 +36,7 @@ jobs: mkdocs-material- - name: Install Python dependencies - run: pip install mkdocs-material==9.4 mkdocs-awesome-pages-plugin mkdocs-macros-plugin mkdocs-git-revision-date-localized-plugin mkdocs-glightbox + run: pip install mkdocs-material==9.5 mkdocs-awesome-pages-plugin mkdocs-macros-plugin mkdocs-git-revision-date-localized-plugin mkdocs-glightbox - name: Deploy to GitHub Pages run: mkdocs gh-deploy --force diff --git a/mkdocs.yml b/mkdocs.yml index d9158872..f9d65934 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -29,24 +29,31 @@ theme: - content.action.edit - content.action.view - content.code.copy + - content.tooltips language: en logo: assets/img/icon.png favicon: assets/favicon.ico palette: - - scheme: default + - media: "(prefers-color-scheme)" + toggle: + icon: material/brightness-auto + name: Switch to light mode + - media: "(prefers-color-scheme: light)" + scheme: default primary: indigo accent: orange toggle: icon: material/brightness-7 name: Switch to dark mode - - scheme: slate + - media: "(prefers-color-scheme: dark)" + scheme: slate primary: indigo accent: orange toggle: icon: material/brightness-4 - name: Switch to light mode + name: Switch to system preference # Custom grabber: