docs: Add dark mode and pymarkdown extensions
This commit is contained in:
parent
abb1976ad7
commit
3303ebe92b
1 changed files with 25 additions and 2 deletions
25
mkdocs.yml
25
mkdocs.yml
|
@ -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
|
||||||
|
@ -32,3 +51,7 @@ markdown_extensions:
|
||||||
repo: llama-cpp-python
|
repo: llama-cpp-python
|
||||||
- pymdownx.snippets
|
- pymdownx.snippets
|
||||||
- pymdownx.superfences
|
- pymdownx.superfences
|
||||||
|
- pymdownx.tabbed:
|
||||||
|
alternate_style: true
|
||||||
|
- pymdownx.tilde
|
||||||
|
- tables
|
||||||
|
|
Loading…
Reference in a new issue