From 7e1f962bca25c8527ba706835181739afd1fc7af Mon Sep 17 00:00:00 2001 From: Mario Sarcher Date: Thu, 29 Oct 2020 17:08:00 +0100 Subject: [PATCH] Add docs theme toggle and update requirements.txt --- mkdocs.yml | 9 ++++++++- mkdocs/requirements.txt | 10 +++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index e50bf1c563..652f34a2b4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -49,7 +49,14 @@ theme: favicon: img/favicon.ico logo: img/lens-logo-icon.svg palette: - scheme: preference + - scheme: default + toggle: + icon: material/toggle-switch + name: Switch to light mode + - scheme: slate + toggle: + icon: material/toggle-switch-off-outline + name: Switch to dark mode features: - navigation.instant diff --git a/mkdocs/requirements.txt b/mkdocs/requirements.txt index 021158cbc9..4db6d92e25 100644 --- a/mkdocs/requirements.txt +++ b/mkdocs/requirements.txt @@ -1,4 +1,8 @@ # Direct dependencies -mkdocs==1.1.2 -mkdocs-material==6.1.0 -mkdocs-git-revision-date-localized-plugin==0.7.3 +mkdocs>=1.1 +Pygments>=2.4 +markdown>=3.2 +pymdown-extensions>=7.0 +mkdocs-material-extensions>=1.0 +mkdocs-git-revision-date-localized-plugin>=0.7.3 +mkdocs-material>=6.1.0 \ No newline at end of file