diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css deleted file mode 100644 index 6fe7745..0000000 --- a/docs/stylesheets/extra.css +++ /dev/null @@ -1,4 +0,0 @@ -[data-md-color-scheme="slate"][data-md-color-primary="black"] { - --md-typeset-a-color: hsl(230.8, 39.9%, 68%); -} - diff --git a/mkdocs.yml b/mkdocs.yml index 2e31772..a73417b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,3 +1,4 @@ +--- site_name: benoit.jp.net copyright:

benoit.jp.net is marked with CC0 1.0

repo_url: https://git.benoit.jp.net/benoit/mkdocs-benoit.jp.net @@ -6,10 +7,24 @@ edit_uri: _edit/master/docs/ theme: name: material - font: false palette: - scheme: slate - primary: black + # Palette toggle for light mode + - media: "(prefers-color-scheme: light)" + primary: black + accent: amber + scheme: default + toggle: + icon: material/brightness-7 + name: Switch to dark mode + # Palette toggle for dark mode + - media: "(prefers-color-scheme: dark)" + primary: black + accent: amber + scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to light mode + font: false favicon: images/console-network.png icon: logo: material/console-network @@ -17,14 +32,13 @@ theme: features: - navigation.tabs - navigation.sections + - navigation.tracking - toc.integrate + - content.action.edit -extra_css: - - stylesheets/extra.css extra_javascript: - javascripts/tablesort.min.js - javascripts/tables.js - - javascripts/mermaid.min.js markdown_extensions: - toc: @@ -40,18 +54,14 @@ markdown_extensions: - pymdownx.snippets - pymdownx.highlight - pymdownx.superfences: - # make exceptions to highlighting of code: custom_fences: - name: mermaid class: mermaid - format: !!python/name:mermaid2.fence_mermaid - + format: !!python/name:pymdownx.superfences.fence_code_format plugins: - - git-revision-date - - mermaid2: - arguments: - theme: 'dark' + - git-revision-date-localized: + enable_creation_date: true extra: social: @@ -60,29 +70,29 @@ extra: name: Mastodon - icon: material/git link: https://git.benoit.jp.net/benoit - name: Gitea + name: Forgejo - icon: material/github link: https://github.com/benoitjpnet name: Github nav: - Homepage: - - index.md + - index.md - Howtos: - - Howto CentOS: Howtos/HowtoCentOS.md - - Howto Crack WPA: Howtos/HowtoCrackWPA.md - - Howto Encoding: Howtos/HowtoEncoding.md - - Howto GPG: Howtos/HowtoGPG.md - - Howto LXD: Howtos/HowtoLXD.md - - Howto MacOS: Howtos/HowtoMacOS.md - - Howto Secure Mail Server: Howtos/HowtoSecureMailServer.md - - Howto Sysadmin: Howtos/HowtoSysadmin.md - - Howto ZFS: Howtos/HowtoZFS.md + - Howto CentOS: Howtos/HowtoCentOS.md + - Howto Crack WPA: Howtos/HowtoCrackWPA.md + - Howto Encoding: Howtos/HowtoEncoding.md + - Howto GPG: Howtos/HowtoGPG.md + - Howto LXD: Howtos/HowtoLXD.md + - Howto MacOS: Howtos/HowtoMacOS.md + - Howto Secure Mail Server: Howtos/HowtoSecureMailServer.md + - Howto Sysadmin: Howtos/HowtoSysadmin.md + - Howto ZFS: Howtos/HowtoZFS.md - Various: - - CPU Benchmark: Various/CPUBenchmark.md - - Electric Road Trip 2019: Various/ElectricRoadTrip2019.md - - Infra: Various/Infra.md - - Japonais: Various/Japonais.md - - Mullvad: Various/Mullvad.md - - TarifsBanques: Various/TarifsBanques.md + - CPU Benchmark: Various/CPUBenchmark.md + - Electric Road Trip 2019: Various/ElectricRoadTrip2019.md + - Infra: Various/Infra.md + - Japonais: Various/Japonais.md + - Mullvad: Various/Mullvad.md + - TarifsBanques: Various/TarifsBanques.md - CV: CV/CV.md