-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmkdocs.yml
160 lines (149 loc) · 4.06 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
site_name: Yves的杂货铺
site_author: Yves
repo_name: Yves的杂货铺
repo_url: https://github.com/jygzyc/notes
edit_uri: edit/main/docs/
# Configuration
theme:
name: material
language: zh
custom_dir: overrides
favicon: assets/favicon.ico
logo: assets/favicon.png
palette:
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
accent: indigo
primary: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: blue grey
toggle:
icon: material/brightness-4
name: Switch to system preference
font:
text: "Microsoft Yahei"
code: "JetBrains Mono"
features:
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/
- navigation.tabs
- navigation.tabs.sticky
- navigation.sections
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-footer/
- navigation.footer
- navigation.top
- navigation.path
# https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/
- content.action.edit
- content.action.view
- content.code.annotate
- content.code.copy
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/
- search.suggest
- search.highlight
- search.share
# When section index pages are enabled, documents can be directly attached to sections, which is particularly useful for providing overview pages
- navigation.indexes
- navigation.instant
- navigation.instant.progress
- navigation.tracking
- navigation.prune
- toc.follow
# Copyright
copyright: 版权所有
# Extensions
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions
markdown_extensions:
- pymdownx.arithmatex:
generic: true
- pymdownx.caret
- pymdownx.mark
- pymdownx.tilde
- pymdownx.critic
- admonition
- pymdownx.details
- pymdownx.superfences
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
linenums: true
use_pygments: true
line_spans: __span
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tabbed:
alternate_style: true
- footnotes
- def_list
- md_in_html
- meta
- toc:
permalink: true
# Additional configuration
extra_javascript:
- js/extra.js
- js/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js
extra_css:
- css/extra.css
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css
hooks:
- overrides/deploy_scripts/hook_copyright.py
- overrides/deploy_scripts/hook_meta.py
# Plugins
plugins:
- awesome-nav:
strict: false
- git-revision-date-localized:
locale: zh
type: iso_date
timezone: Asia/Shanghai
enable_creation_date: true
exclude:
- blog/*
- index.md
- message_board.md
- search:
lang:
- en
- ja
- zh
separator: '[\s\u200b\-]'
- glightbox:
auto_caption: false
caption_position: bottom
- minify:
minify_html: true
- blog:
blog_dir: blog
post_url_date_format: yyyy/MM
post_url_format: "{date}/{file}"
archive: true
categories: true
extra:
analytics:
provider: google
property: G-YJZYQKZXND
social:
- icon: fontawesome/brands/github
link: https://github.com/jygzyc
name: Yves on GitHub
- icon: fontawesome/brands/bilibili
link: https://space.bilibili.com/36193083
name: Yves on Bilibili