-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdocs.yml
More file actions
212 lines (199 loc) · 4.89 KB
/
mkdocs.yml
File metadata and controls
212 lines (199 loc) · 4.89 KB
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# 站点基本信息配置
site_name: Ecank的小屋
site_url: https://ecankk.github.io/
site_author: Ecank
repo_name: Ecank-blog
repo_url: https://github.com/Ecankk/Ecankk.github.io
site_description: >-
This is my personal blog, record my study and life.
# 主题配置
theme:
name: material # 使用Material主题
# 主题特性配置
language: en
custom_dir: overrides
palette:
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: follow system
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: white
accent: deep purple
toggle:
icon: material/weather-night
name: light mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: deep purple
toggle:
icon: material/weather-sunny
name: dark mode
icon:
logo: material/food
repo: fontawesome/brands/git-alt
edit: material/pencil
features:
- content.code.annotate
- content.code.copy
- content.code.select
- content.action.view
- content.footnote.tooltips
- content.tabs.link
- header.autohide
# - navigation.tabs.sticky
# - navigation.sections
- navigation.tracking
- navigation.tabs
- navigation.indexes
- navigation.top
- navigation.path
# - navigation.instant.prefetch
# - navigation.instant.preview
# - navigation.instant.progress
# - navigation.expand
- toc.follow
- search.highlight
- search.share
- search.suggest
# 字体配置
font:
text: JetBrains Mono
# 扩展配置
plugins:
- blogging:
locale: en
# {{ blog_content }}
dirs:
- CS
- ML
- ACM
# {{ blog_content CS }}
categories:
- name: CS
dirs:
- CS
- name: ML
dirs:
- ML
- name: ACM
dirs:
- ACM
- name: Summaries
dirs:
- Summaries
- name: Life
dirs:
- Life/posts
theme:
name: card
features:
tags:
index_page: tags/
insert: top
- callouts
- glightbox:
width: 80%
- git-revision-date-localized:
type: datetime
timezone: Asia/Shanghai
enable_creation_date: true
exclude:
- index.md
- academy.md
- links.md
- changelog.md
- minify:
minify_html: false
minify_js: true
minify_css: true
js_files:
- js/katex.js
- js/mathjax.js
- js/toc.js
css_files:
- css/custom.css
- css/tasklist.css
- css/card.css
- css/flink.css
- css/extra.css
- css/fold_toc.css
- css/grid cards.css
- search
- statistics:
words_per_minute: 200
markdown_extensions:
- toc: # 目录
permalink: true # 永久链接
toc_depth: 3 # 目录深度
- tables # 表格支持
- abbr
- admonition
- attr_list
- footnotes
- meta
- md_in_html
- nl2br
- pymdownx.arithmatex: # latex支持
generic: true
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
options:
custom_icons:
- overrides/.icons
- pymdownx.highlight: # 代码块高亮
anchor_linenums: true
auto_title: true # 显示编程语言名称
linenums: true # 显示行号
linenums_style: pymdownx-inline
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.mark
- pymdownx.magiclink
- pymdownx.saneheaders
- pymdownx.snippets
- pymdownx.smartsymbols
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tabbed:
alternate_style: true
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
- pymdownx.tilde
- sane_lists
extra_css:
- https://unpkg.com/katex@0/dist/katex.min.css
# - https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css
- https://cdn.tonycrane.cc/utils/katex.min.css
- https://cdn.tonycrane.cc/jbmono/jetbrainsmono.css
- https://cdn.tonycrane.cc/lxgw/lxgwscreen.css
- css/custom.css
- css/tasklist.css
- css/card.css
- css/flink.css
- css/extra.css
- css/fold_toc.css
- https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css
- css/font.css
extra_javascript:
- js/katex.js
- https://unpkg.com/katex@0/dist/katex.min.js
- https://unpkg.com/katex@0/dist/contrib/auto-render.min.js
#- js/katex.js