-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmkdocs.yml
More file actions
217 lines (204 loc) · 5.81 KB
/
mkdocs.yml
File metadata and controls
217 lines (204 loc) · 5.81 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
213
214
215
216
217
## Project information
site_author: virtualguard101{}
# site_description: >-
# Write your documentation in Markdown and create a professional static site in
# minutes – searchable, customizable, in 60+ languages, for all devices
site_name: Mkdocs Note
site_url: https://blog.virtualguard101.com/mkdocs-note
repo_url: https://github.com/virtualguard101/mkdocs-note
repo_name: virtualguard101/mkdocs-note
edit_uri: blob/main/docs/
## Configuration
theme:
name: material
language: en
custom_dir: overrides
# favicon: assets/logo.png
features:
- announce.dismiss
- content.action.edit
- content.action.view
- content.code.annotate
- content.code.copy
# - content.code.select
# - content.footnote.tooltips
# - content.tabs.link
- content.tooltips
# - header.autohide
# - navigation.expand
- navigation.footer
- navigation.indexes
# - navigation.instant
# - navigation.instant.prefetch
# - navigation.instant.progress
# - navigation.prune
- navigation.sections
- navigation.tabs
# - navigation.tabs.sticky
- navigation.top
- navigation.tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
# - toc.integrate
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
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference
# font:
# text: "'LXGW WenKai Screen', 'Noto Sans SC', 'Microsoft YaHei', sans-serif"
# code: "'Cascadia Mono', 'LXGW WenKai Screen', 'Noto Sans SC', 'Microsoft YaHei', sans-serif"
icon:
repo: fontawesome/brands/github
logo: material/notebook-multiple
edit: material/pencil
# tag:
# default: fontawesome/solid/hashtag
## Plugins
plugins:
# - blog:
# post_excerpt: required
# archive_date_format: MMMM yyyy
# archive_url_date_format: yyyy/MM
# - rss:
# match_path: blog/posts/.*
# date_from_meta:
# as_creation: date
# categories:
# - categories
# - tag
# comments_path: "#__comments"
# - social:
# cards_layout: default/only/image
# cards_layout_options:
# background_image: assets/images/beihai.jpg
- search:
separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
- awesome-nav
- minify:
minify_html: true
minify_js: true
minify_css: true
htmlmin_opts:
remove_comments: true
cache_safe: true
# js_files:
# - assets/javascripts/
# css_files:
# - assets/stylesheets/
- git-revision-date-localized:
enable_creation_date: true
- mkdocs-note:
recent_notes_config:
enabled: true
insert_marker: "<!-- recent_notes -->"
insert_num: 10
graph_config:
enabled: true
name: "title"
debug: false
- mkdocstrings:
handlers:
python:
options:
show_submodules: true
# extra_css:
extra_javascript:
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
- https://d3js.org/d3.v7.min.js
hooks:
- scripts/hooks/rss.py
- scripts/hooks/fancybox.py
- scripts/hooks/copyright.py
# - scripts/hooks/
## Extensions
markdown_extensions:
- abbr
- tables
- attr_list
- md_in_html
- footnotes
- admonition
# - callouts
- pymdownx.details
- pymdownx.critic
- pymdownx.caret
- pymdownx.keys
- pymdownx.mark
- pymdownx.tilde
- pymdownx.highlight:
# auto_title: true
# linenums: true
# anchor_linenums: true
# line_spans: __span # When this option is set, each line of a code block is wrapped in a span, which is essential for features like line highlighting to work correctly
use_pygments: true
# https://facelessuser.github.io/pymdown-extensions/extensions/highlight/#extended-pygments-lexer-options
extend_pygments_lang:
- name: antlr4
lang: antlr
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
# 生成可读的 unicode slug
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.slugify
slugify: !!python/object/apply:pymdownx.slugs.slugify {}
- toc:
# https://python-markdown.github.io/extensions/toc/
permalink: true
separator: "-"
# 生成可读的 unicode slug
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.slugify
slugify: !!python/object/apply:pymdownx.slugs.slugify {}
- pymdownx.arithmatex:
generic: true
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
watch:
- overrides
# https://www.mkdocs.org/user-guide/configuration/#validation
validation:
links:
anchors: warn
unrecognized_links: warn
## Additional configuration
extra:
# alternate:
# - name: 简体中文
# link: /
# lang: zh
# - name: English
# link: /en/
# lang: en
status:
new: Recently added
deprecated: Deprecated
# analytics:
# provider: google
# property:
social:
- icon: fontawesome/brands/github
link: https://github.com/virtualguard101
- icon: fontawesome/brands/x-twitter
link: https://x.com/virtualguardi01