-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmkdocs.yml
69 lines (59 loc) · 1.92 KB
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
site_name: Notes
site_description: Learning notes.
site_author: ShenMian
site_url: https://shenmian.github.io/notes/
repo_name: ShenMian/notes
repo_url: https://github.com/ShenMian/notes/
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/
theme:
name: material
custom_dir: overrides
# favicon: docs/assets/icon.ico
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/?h=language#configuration
language: zh
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/?h=font#configuration
font:
text: fonts/SourceHanSerifSC-Regular.otf, Roboto
code: fonts/CascadiaCodeNF.woff2
# enable search
include_search_page: false
search_index_only: true
static_templates:
- 404.html
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/?h=palette#color-palette-toggle
palette:
- scheme: default
primary: green
accent: green
toggle:
icon: material/brightness-7
name: 浅色模式
- scheme: slate
primary: green
accent: green
toggle:
icon: material/brightness-4
name: 深色模式
features:
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/?h=features+navigation+tabs#navigation-tabs
- navigation.tabs
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/
markdown_extensions:
# - meta # FIXME: 启用会导致搜索功能失效, 包括往文件中写入 meta 数据
- admonition
- attr_list
- md_in_html
- footnotes
- pymdownx.details
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.arithmatex:
generic: true
extra:
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-footer/?h=extra+social#social-links
social:
- icon: fontawesome/brands/github
link: https://github.com/ShenMian