-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkdocs.yml
150 lines (139 loc) · 4.41 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
nav:
- 🏡 主页: https://xuan-insr.github.io/
- 随机笔记:
- ./blog/index.md
site_name: 咸鱼暄的代码空间
site_url: https://xuan-insr.github.io/
repo_name: xuan-insr/咸鱼暄的代码空间
repo_url: https://github.com/xuan-insr/xuan-insr.github.io
theme:
name: material
logo: logo.ico
favicon: logo.ico
features:
- navigation.tabs # 一级导航在横着的导航栏
- content.code.annotate # 可以在代码块中增添点击展示的注释,参见 https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#adding-annotations
# - navigation.tracking # 地址栏中的 URL 会随当前位置变化为对应小节的 URL
- navigation.indexes # 将 index 页面直接附到小节名上
- navigation.top # 回到顶部按钮
- navigation.sections # 二级导航是粗体
- navigation.expand # 导航默认展开
- toc.follow # toc 跟随
# - toc.integrate # 文档 toc 集成到总目录中
language: 'zh'
palette:
# Palette toggle for light mode
- scheme: default
primary: cyan
accent: cyan
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
primary: orange
accent: orange
toggle:
icon: material/brightness-4
name: Switch to light mode
font:
text: Noto Serif SC # Roboto
code: Roboto Mono
custom_dir: overrides # 用来搞评论的,参考 https://squidfunk.github.io/mkdocs-material/setup/adding-a-comment-system/
edit_uri: ""
markdown_extensions:
- toc:
permalink: true # link for each title
slugify: !!python/name:pymdownx.slugs.uslugify # enable Unicode link
- admonition
- abbr
- attr_list
- def_list
- footnotes
- tables
- meta
- md_in_html
- neoteroi.cards
- neoteroi.timeline
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
# smart_enable: all
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.highlight
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.magiclink:
repo_url_shorthand: true
user: squidfunk
repo: mkdocs-material
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.snippets: # 允许将其他文件内容插入文件,语法是 --8<-- "filename.ext" 等,参见 https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#snippets-notation
auto_append:
- includes/abbreviations.md
base_path: ["docs"]
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
extra:
analytics:
provider: google
property: G-JT9BRCXKJJ
social:
- icon: fontawesome/brands/github
link: https://github.com/smd1121
- icon: fontawesome/solid/envelope
link: mailto:[email protected]
# extra:
# search:
# language: 'jp'
# pagetime: 'on'
copyright: '本页面的全部内容在 <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh">CC BY-SA 4.0</a> 和 <a href="https://github.com/zTrix/sata-license">SATA</a> 协议之条款下提供,附加条款亦可能应用'
extra_css:
- 'from_oi_wiki/css/extra.css?v=13'
- css/status.css
- css/neoteroi-mkdocs.css
extra_javascript:
- 'from_oi_wiki/js/extra.js'
- js/mathjax.js # 支持数学公式,ref : https://squidfunk.github.io/mkdocs-material/reference/mathjax
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- https://unpkg.com/[email protected]/dist/tablesort.min.js # 支持表格排序
- js/tablesort.js
plugins:
- search:
separator: '[\s\u200b\-]'
jieba_dict: dict.txt.big
- git-revision-date-localized:
enable_creation_date: true
type: timeago
# - statistics
- termynal:
title: ""
buttons: macos
prompt_literal_start:
- "$"
- ">"
- "%"
- blog:
blog_toc: true
post_url_date_format: yyyy/MM
post_url_format: "{slug}"
post_readtime_words_per_minute: 120
archive: true
archive_date_format: yyyy-MM
post_excerpt: required
categories: true