From 3303ebe92b985266970e076639c0c408e65d769e Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Wed, 22 Nov 2023 22:47:22 -0500 Subject: [PATCH] docs: Add dark mode and pymarkdown extensions --- mkdocs.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 27742bd..ffca96b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,7 +2,22 @@ site_name: llama-cpp-python repo_url: https://github.com/abetlen/llama-cpp-python theme: - name: "material" + name: material + palette: + + # Palette toggle for light mode + - scheme: default + primary: indigo + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + # Palette toggle for dark mode + - scheme: slate + primary: indigo + toggle: + icon: material/brightness-4 + name: Switch to light mode plugins: - mkdocstrings @@ -21,6 +36,10 @@ nav: - "Changelog": "changelog.md" markdown_extensions: + - attr_list + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg - pymdownx.highlight: anchor_linenums: true line_spans: __span @@ -31,4 +50,8 @@ markdown_extensions: user: abetlen repo: llama-cpp-python - pymdownx.snippets - - pymdownx.superfences \ No newline at end of file + - pymdownx.superfences + - pymdownx.tabbed: + alternate_style: true + - pymdownx.tilde + - tables