-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkdocs.yml
222 lines (211 loc) · 7.55 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
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
213
214
215
216
217
218
219
220
221
222
# official tutorial
# mkdocs-material: https://squidfunk.github.io/mkdocs-material/
# mkdocs: https://www.mkdocs.org/user-guide/configuration/
# bug 已修复 ../
site_name: 88x31 博物馆
site_url: https://saveweb.github.io/88x31-Museum
# site_description: >-
# 这里是 88x31 网站(网站简介的元数据)
repo_name: saveweb/88x31-Museum
repo_url: https://github.com/saveweb/88x31-Museum
use_directory_urls: false # gledos 不喜欢的 URL 风格,所以要关闭
edit_uri: "" # 隐藏编辑按钮
theme:
# favicon: favicon.png
icon:
logo: material/image
admonition:
quote: bootstrap/cblb
font: false
palette:
- media: "(prefers-color-scheme: light)"
primary: blue
scheme: default
toggle:
icon: material/toggle-switch-off-outline
name: 切换到暗模式
- media: "(prefers-color-scheme: dark)"
primary: blue
scheme: slate
toggle:
icon: material/toggle-switch
name: 切换到亮模式
name: material
custom_dir: overrides
language: zh # 中文,解决中文搜索问题
features:
- navigation.indexes # 文件夹下的 index.md 自动「连接」
- header.autohide
- navigation.top # 回到顶部的按钮
# - search.highlight
# - navigation.instant # XHR 支持
# - navigation.tracking # 自动锚点更新
# - toc.integrate
# - tabs # 顶部选项卡/栏位
markdown_extensions:
# - legacy_em # 恢复 Markdown 的严格加重符号语义
- md_in_html # HTML 内书写 Markdown
- attr_list # 增加 css-html 样式,例如按钮,比如图片定义大小,caption https://python-markdown.github.io/extensions/attr_list/
# - legacy_attrs # 增加 css-html 样式,已废弃,不推荐使用 https://python-markdown.github.io/extensions/legacy_attrs/
- admonition # 突出显示一些东西,比如 !!!info|bug|tips之类
- footnotes # 支持脚注[^1]
- def_list # 支持有序、无序、任务列表
- pymdownx.superfences: # 代码块相关
custom_fences: # 代码块相关
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- toc:
permalink: "#" # heading anchor
slugify: !!python/name:pymdownx.slugs.uslugify # 解决中文标题解析问题
- codehilite:
guess_lang: false
linenums: false
# - pymdownx.betterem:
# smart_enable: all
- pymdownx.tabbed: # 标签页 https://squidfunk.github.io/mkdocs-material/reference/content-tabs/ # C++/python 代码例子切换
alternate_style: true
- meta # YAML 元数据
- pymdownx.tasklist
- pymdownx.details
- pymdownx.highlight # 代码块相关
- pymdownx.inlinehilite # 代码块相关
- pymdownx.snippets
# - pymdownx.magiclink # 魔法链接,自动把裸露的链接转化成 <a> 标签
- pymdownx.mark
- pymdownx.critic # 支持 markdown 高亮==、删除、注解等高级样式
- pymdownx.keys # 支持 快捷键渲染
- pymdownx.emoji: # 支持图标 icons 和表情渲染,比如:smile:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
options:
custom_icons:
- overrides/.icons
# pymdownx.b64 # 将图片编码为 base64
# - abbr # 缩写词,因为没有多少 Markdown 使用这样的语法,所以不会使用。
# - nl2br # newline-to-break markdown 非严格换行,我不喜欢的插件
# - pymdownx.arithmatex # 数学公式latex支持
# - pymdownx.pathconverter:
# base_path: '' # default: ''
# relative_path: '' # default ''
# absolute: false # default: false
# tags: 'a script img link object embed'
# - pymdownx.caret # 上标、下划线
# - pymdownx.smartsymbols # 1st 2en 以及特殊符号
# - pymdownx.tilde # 下标
plugins:
# - progress # 显示构建状态,方便除错? https://github.com/obuya/mkdocs-new-features-notifier
# - mkdocs-video: # 支持内嵌本地视频 https://pypi.org/project/mkdocs-video/
# is_video: True
# css_style:
# width: "100%"
# height: "100%"
# - minify: # 将文件 minify 的插件 https://github.com/byrnereese/mkdocs-minify-plugin
# minify_html: true # html 过多,导致生成时间变成了三倍……
# minify_js: true # 只压缩 js 和 css 效果又不明显,所以不打算使用……
# minify_css: true
# htmlmin_opts:
# remove_comments: true
# js_files:
# - my/javascript/dir/file1.js
# css_files:
# - css/external_link_icon.css
# - css/footnotes.css
# - css/base.css
# - css/custom_admonitions.css
# - search:
# separator: '[\s\u200b\-]'
# - exclude-search:
# exclude:
# - CODE_OF_CONDUCT.md
# - tags.md
# - warrant_canary.md
# - 待办事项.md
# - rule/*
# - news_archive/*
# - encryption/*
- tags:
tags_file: tags.md
- callouts # 微软风格的 admonition https://github.com/sondregronas/mkdocs-callouts
- abs-to-rel # 绝对路径转相对路径 https://pypi.org/project/mkdocs-abs-rel-plugin/
# - pdf-export # 导出为 PDF 格式,不过对于此 Wiki 来说,耗时过多。
# - roamlinks # 这是自动将链接转化为易于 mkdocs 的插件
# - autolinks
- exclude:
glob:
- "src/_HD_/*"
- "mkdocs/本地/*"
- "*.tmp"
- "*.gz"
- "encryption/*"
- "liquid/*"
# regex:
# - '.*\.(tmp|bin|tar)$'
- redirects: # 重定向插件 https://github.com/datarobot/mkdocs-redirects
redirect_maps:
# "book/南方周末.md": "text/南方周末.md" # 演示内容
- blogging:
features:
tags:
index_page: tags.md
insert: bottom
time_format: '%Y-%m-%d %H:%M:%S'
meta_time_format: '%Y-%m-%dT%H:%M:%S'
dirs: # The directories to be included
- blog
categories:
- name: license
dirs:
- license
size: 50
template: overrides/custom-blog.html
- name: archive
dirs:
- archive
size: 50
template: overrides/custom-blog.html
- name: website
dirs:
- website
size: 50
template: overrides/custom-blog.html
- name: status
dirs:
- status
size: 50
template: overrides/custom-blog.html
- name: create
dirs:
- create
size: 50
template: overrides/custom-blog.html
- glightbox:
touchNavigation: true
loop: false
effect: fade
slide_effect: slide
width: 60vmax
height: auto
zoomable: true
draggable: true
skip_classes:
- skip-lightbox
auto_caption: false
caption_position: bottom
extra:
generator: false
social:
- icon: fontawesome/brands/telegram
link: https://t.me/Museum88x31
# - icon: material/email-outline
# link: mailto:[email protected]
extra_css:
- "css/external_link_icon.css"
- "css/footnotes.css" # 脚注 CSS
- "css/base.css" # 格式处理
- "css/custom_admonitions.css" # 自定义 Admonitions
- "css/timeline.css" # Álvaro 的 Creative Timeline
# extra_javascript:
# - "js/pixel-perfect.js" # greggman 的完美像素,似乎有些冲突,所以先不使用……
# - https://unpkg.com/mermaid/dist/mermaid.min.js
copyright: 使用了 <a href="https://squidfunk.github.io/mkdocs-material/">Material for MkDocs</a> 以及 Github Pages 生成并托管网站。<br>