Skip to content

Commit 6b8e761

Browse files
committed
Update: Add code highlighting.
1 parent 9035f2e commit 6b8e761

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

mkdocs.yml

+26-11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ site_url: https://manim.markhoo.cn
55
repo_url: https://github.com/MarkHoo/manim-docs-zh-hans
66
edit_uri: edit/main/docs/
77

8+
markdown_extensions:
9+
- pymdownx.highlight:
10+
anchor_linenums: true
11+
line_spans: __span
12+
pygments_lang_class: true
13+
auto_title: true
14+
linenums: true
15+
- pymdownx.inlinehilite
16+
- pymdownx.snippets
17+
- pymdownx.superfences
18+
- pymdownx.tasklist:
19+
custom_checkbox: true
20+
821
theme:
922
name: material
1023
language: zh
@@ -29,29 +42,31 @@ theme:
2942
- search.highlight
3043
- search.share
3144
- navigation.footer
45+
- content.code.copy
3246

3347

34-
palette:
48+
palette:
49+
# Palette toggle for dark mode
50+
- scheme: slate
51+
primary: black
52+
accent: indigo
53+
toggle:
54+
icon: material/weather-sunny
55+
name: 切换到浅色模式
3556

3657
# Palette toggle for light mode
37-
- media: "(prefers-color-scheme: light)"
58+
- scheme: default
3859
primary: white
3960
accent: indigo
40-
scheme: default
4161
toggle:
4262
icon: material/weather-night
4363
name: 切换到深色模式
4464

45-
# Palette toggle for dark mode
46-
- media: "(prefers-color-scheme: dark)"
47-
primary: black
48-
accent: indigo
49-
scheme: slate
50-
toggle:
51-
icon: material/weather-sunny
52-
name: 切换到浅色模式
5365

5466
# font: false
67+
font:
68+
text: Roboto
69+
code: Roboto Mono
5570

5671

5772
extra:

0 commit comments

Comments
 (0)