From b5ced55f9331cd894fd7faa378f3686a48ebe208 Mon Sep 17 00:00:00 2001 From: Eric Bouchut Date: Sun, 28 Jan 2024 12:29:49 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20=20Upgrade=20dependenc?= =?UTF-8?q?ies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Upgrade mkdocs-material to 9.5.6 from 9.4.6 - Upgrade mkdocs-unused-files to 0.2.0 from 0.1.7 - Upgrade mkdocs-htmlproofer-plugin to 1.0.0 from 0.13.1 and also upgrade their dependencies - Update mkdocs-unused-files config (mkdocs.yml). Remove path to only keep file names. See: https://github.com/wilhelmer/mkdocs-unused-files/releases/tag/0.2.0 --- mkdocs.yml | 11 ++++------- requirements.txt | 45 ++++++++++++++++++++------------------------- 2 files changed, 24 insertions(+), 32 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 69598229990..c5f141ae0d2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -48,8 +48,8 @@ markdown_extensions: generic: true - pymdownx.details - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg - pymdownx.highlight - pymdownx.mark - pymdownx.tilde @@ -110,12 +110,9 @@ plugins: enabled: !ENV [CHECK_UNUSED_FILES, False] excluded_files: - .DS_Store - - build/.DS_Store - - gh-actions/.DS_Store - - gh-actions/img/.DS_Store - loop-logo.png - - stylesheets/extra.css - - stylesheets/primary-color.css + - extra.css + - primary-color.css use_directory_urls: !ENV [CHECK_BROKEN_LINKS, True] diff --git a/requirements.txt b/requirements.txt index 5cd0ca97d8f..7c201c6fba1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,37 +1,32 @@ -Babel==2.13.0 -beautifulsoup4==4.12.2 -certifi==2023.7.22 -charset-normalizer==3.0.1 -click==8.1.3 +Babel==2.14.0 +beautifulsoup4==4.12.3 +certifi==2023.11.17 +charset-normalizer==3.3.2 +click==8.1.7 colorama==0.4.6 -EditorConfig==0.12.3 ghp-import==2.1.0 -idna==3.4 -importlib-metadata==6.0.0 +idna==3.6 Jinja2==3.1.3 -jsbeautifier==1.14.7 -Markdown==3.3.7 -MarkupSafe==2.1.2 +Markdown==3.5.2 +MarkupSafe==2.1.4 mergedeep==1.3.4 mkdocs==1.5.3 -mkdocs-htmlproofer-plugin==0.13.1 -mkdocs-material==9.4.6 -mkdocs-material-extensions==1.2 +mkdocs-htmlproofer-plugin==1.0.0 +mkdocs-material==9.5.6 mkdocs-redirects==1.2.1 -mkdocs-unused-files==0.1.7 -packaging==23.0 +mkdocs-unused-files==0.2.0 +packaging==23.2 paginate==0.5.6 -pathspec==0.11.2 -platformdirs==3.11.0 -Pygments==2.16.1 -pymdown-extensions==10.3 +pathspec==0.12.1 +platformdirs==4.1.0 +Pygments==2.17.2 +pymdown-extensions==10.7 python-dateutil==2.8.2 PyYAML==6.0.1 pyyaml_env_tag==0.1 -regex==2022.10.31 +regex==2023.12.25 requests==2.31.0 six==1.16.0 -soupsieve==2.3.2.post1 -urllib3==2.0.7 -watchdog==2.2.1 -zipp==3.12.0 +soupsieve==2.5 +urllib3==2.1.0 +watchdog==3.0.0 From 78a359fd78512912db05039f5768abf22a36e066 Mon Sep 17 00:00:00 2001 From: Eric Bouchut Date: Sun, 28 Jan 2024 16:29:05 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=84=20Add=20automatic=20light/dark?= =?UTF-8?q?=20theme=20toggle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace light and dark toggle icons resp. with sun and moon+stars. Use system preferences. See: https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#automatic-light-dark-mode --- mkdocs.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index c5f141ae0d2..acdf3ba0161 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -17,12 +17,19 @@ theme: logo: loop-logo.png favicon: loop-logo.png palette: + + # Palette toggle for automatic mode + - media: "(prefers-color-scheme)" + toggle: + icon: material/brightness-auto + name: Switch to light mode + # Palette toggle for light mode - media: "(prefers-color-scheme: light)" scheme: default primary: custom toggle: - icon: material/brightness-7 + icon: material/weather-sunny name: Switch to dark mode # Palette toggle for dark mode @@ -30,8 +37,8 @@ theme: scheme: slate primary: custom toggle: - icon: material/brightness-4 - name: Switch to light mode + icon: material/weather-night + name: Switch to auto (use System Preferences) # repo_url: https://github.com/LoopKit/Loop