docs: Add dark mode and pymarkdown extensions

This commit is contained in:
Andrei Betlen 2023-11-22 22:47:22 -05:00
parent abb1976ad7
commit 3303ebe92b

View file

@ -2,7 +2,22 @@ site_name: llama-cpp-python
repo_url: https://github.com/abetlen/llama-cpp-python repo_url: https://github.com/abetlen/llama-cpp-python
theme: 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: plugins:
- mkdocstrings - mkdocstrings
@ -21,6 +36,10 @@ nav:
- "Changelog": "changelog.md" - "Changelog": "changelog.md"
markdown_extensions: markdown_extensions:
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.highlight: - pymdownx.highlight:
anchor_linenums: true anchor_linenums: true
line_spans: __span line_spans: __span
@ -31,4 +50,8 @@ markdown_extensions:
user: abetlen user: abetlen
repo: llama-cpp-python repo: llama-cpp-python
- pymdownx.snippets - pymdownx.snippets
- pymdownx.superfences - pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tilde
- tables