8000 docs: Add dark mode and pymarkdown extensions · caiyesd/llama-cpp-python@3303ebe · GitHub
[go: up one dir, main page]

Skip to content

Commit 3303ebe

Browse files
committed
docs: Add dark mode and pymarkdown extensions
1 parent abb1976 commit 3303ebe

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

mkdocs.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@ site_name: llama-cpp-python
22
repo_url: https://github.com/abetlen/llama-cpp-python
33

44
theme:
5-
name: "material"
5+
name: material
6+
palette:
7+
8+
# Palette toggle for light mode
9+
- scheme: default
10+
primary: indigo
11+
toggle:
12+
icon: material/brightness-7
13+
name: Switch to dark mode
14+
15+
# Palette toggle for dark mode
16+
- scheme: slate
17+
primary: indigo
18+
toggle:
19+
icon: material/brightness-4
20+
name: Switch to light mode
621

722
plugins:
823
- mkdocstrings
@@ -21,6 +36,10 @@ nav:
2136
- "Changelog": "changelog.md"
2237

2338
markdown_extensions:
39+
- attr_list
40+
- pymdownx.emoji:
41+
emoji_index: !!python/name:materialx.emoji.twemoji
42+
emoji_generator: !!python/name:materialx.emoji.to_svg
2443
- pymdownx.highlight:
2544
anchor_linenums: true
2645
line_spans: __span
@@ -31,4 +50,8 @@ markdown_extensions:
3150
user: abetlen
3251
repo: llama-cpp-python
3352
- pymdownx.snippets
34-
- pymdownx.superfences
53+
- pymdownx.superfences
54+
- pymdownx.tabbed:
55+
alternate_style: true
56+
- pymdownx.tilde
57+
- tables

0 commit comments

Comments
 (0)
0