-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkdocs.yml
143 lines (134 loc) · 3.33 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
---
# Site
site_name: 廖思睿的个人博客
site_url: https://blog.liaosirui.com
site_author: "Cyril Liao"
site_description: >-
一个热爱计算机科学、数学、量化的工程师,记录生活、分享知识、交流经验。
# Repository
repo_name: LiaoSirui/blog.liaosirui.com
repo_url: https://github.com/LiaoSirui/blog.liaosirui.com
edit_uri: blob/main/
# Copyright
copyright: >-
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=51010702043024">川公网安备51010702043024号</a> |
<a href="http://beian.miit.gov.cn">蜀ICP备17003301号-1</a>
# Configuration
theme:
name: material
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to system preference
font:
text: Roboto
code: Roboto Mono
language: zh
icon:
repo: fontawesome/brands/github-alt
logo: material/library-outline
features:
- content.code.copy
- navigation.tabs
- navigation.tabs.sticky
- navigation.sections
- navigation.path
- navigation.top
- navigation.indexes
- search.highlight
- search.share
- search.suggest
# Extensions
markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- toc:
toc_depth: 3
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
combine_header_slug: true
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
# Customization
extra:
# generator: false
social:
- icon: fontawesome/solid/house
link: http://www.liaosirui.com/
- icon: fontawesome/brands/github
link: https://github.com/LiaoSirui
# Validation
validation:
nav:
omitted_files: warn
not_found: warn
absolute_links: warn
links:
not_found: warn
absolute_links: warn
unrecognized_links: warn
# Plugins
plugins:
- search:
separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])' # 分隔符
- minify:
minify_html: true
minify_js: true
minify_css: true
htmlmin_opts:
remove_comments: true
cache_safe: true
# - privacy
- mkdocs-nav-weight:
section_renamed: false
index_weight: -10
warning: true
reverse: false
headless_included: false
- pagetree
exclude_docs: |
!.assets
!.icons
use_directory_urls: false