diff options
author | Petra Mirelli <80395360+iNtEgraIR2021@users.noreply.github.com> | 2024-03-10 16:28:55 +0000 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2024-04-01 10:51:56 +0200 |
commit | 8c36f1d8bff24e07eb773a5a5922e51f4350ca0d (patch) | |
tree | 39d6bdcf0c830c8fec16225d328fe0231e6c0c4e /mkdocs.yml | |
parent | 9834529005db898eec2dac2be11a1cca87cd2cdf (diff) |
Chore(docs): enable code highlighting and theme switcher
Signed-off-by: Petra Mirelli <80395360+iNtEgraIR2021@users.noreply.github.com>
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'mkdocs.yml')
-rw-r--r-- | mkdocs.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mkdocs.yml b/mkdocs.yml index 7b9c80753..02e0c7ece 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -28,6 +28,22 @@ theme: logo: assets/logo.svg favicon: assets/favicon.png font: false + palette: + - media: "(prefers-color-scheme: light)" + scheme: default + accent: indigo + primary: indigo + toggle: + icon: material/toggle-switch-off-outline + name: Switch to dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: indigo + accent: indigo + toggle: + icon: material/toggle-switch + name: Switch to light mode + features: - navigation.indexes - navigation.tracking @@ -37,6 +53,13 @@ theme: markdown_extensions: - admonition + - pymdownx.highlight: + anchor_linenums: true + line_spans: "code-line" + pygments_lang_class: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences # extra: # version: |