From 3691694256b32d13e2483f88fb692f780f29e41f Mon Sep 17 00:00:00 2001 From: sellth Date: Fri, 8 Mar 2024 18:17:12 +0100 Subject: [PATCH] add dark mode (#118) --- bih-cluster/mkdocs.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/bih-cluster/mkdocs.yml b/bih-cluster/mkdocs.yml index a7cea208c..8cf7d4b31 100644 --- a/bih-cluster/mkdocs.yml +++ b/bih-cluster/mkdocs.yml @@ -10,11 +10,24 @@ repo_url: https://github.com/bihealth/bih-cluster/ edit_uri: 'edit/main/bih-cluster/docs/' # Copyright -copyright: 2016-2022, BIH HPC IT +copyright: 2016-2024, BIH HPC IT # Theming, Configuration theme: name: material + # Custom overrides + custom_dir: overrides + palette: + # Palette toggle for light mode + - scheme: default + toggle: + icon: material/lightbulb + name: Switch to dark mode + # Palette toggle for dark mode + - scheme: slate + toggle: + icon: material/lightbulb-outline + name: Switch to light mode strict: true extra_css: - css/extra.css @@ -24,11 +37,6 @@ plugins: - search - git-revision-date-localized -# Custom overrides. -theme: - name: material - custom_dir: overrides - # Extensions markdown_extensions: - attr_list