-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmkdocs.yml
More file actions
194 lines (170 loc) · 5.32 KB
/
Copy pathmkdocs.yml
File metadata and controls
194 lines (170 loc) · 5.32 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
site_name: GUGUBot 文档
site_description: 功能强大的 MCDR QQ 机器人插件
site_author: LoosePrince & XueK__
site_url: https://pfingan-code.github.io/PF-GUGUBot/
# 仓库信息
repo_name: PFingan-Code/PF-GUGUBot
repo_url: https://github.com/PFingan-Code/PF-GUGUBot
edit_uri: edit/main/docs/
# 版权信息
copyright: Copyright © 2023-2024 LoosePrince & XueK__
# 主题配置
theme:
name: material
language: zh
# 图标
icon:
logo: material/robot
repo: fontawesome/brands/github
# 配色方案
palette:
# 浅色模式
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: 切换到深色模式
# 深色模式
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: 切换到浅色模式
# 功能特性
features:
# 导航
- navigation.instant # 即时加载
- navigation.instant.progress # 加载进度条
- navigation.tracking # 地址栏跟踪
- navigation.tabs # 标签导航
- navigation.tabs.sticky # 粘性标签
- navigation.sections # 导航分组
- navigation.expand # 默认展开导航
- navigation.indexes # 分组索引页
- navigation.top # 返回顶部按钮
- navigation.footer # 页脚导航
# 搜索
- search.suggest # 搜索建议
- search.highlight # 搜索高亮
- search.share # 搜索分享
# 内容
- content.code.copy # 代码复制按钮
- content.code.select # 代码选择按钮
- content.code.annotate # 代码注释
- content.tabs.link # 内容标签链接
- content.tooltips # 工具提示
# 顶部
- header.autohide # 自动隐藏顶栏
# 目录
- toc.follow # 目录跟随
- toc.integrate # 目录集成
# 导航结构
nav:
- 首页: index.md
- 快速开始:
- 安装指南: installation.md
- 配置说明: configuration.md
- 使用指南:
- 功能详解: features.md
- 多服互联: multi-server.md
- 疑难解答: troubleshooting.md
- 开发者:
- API 文档: api.md
- 关于:
- GitHub: https://github.com/PFingan-Code/PF-GUGUBot
- QQ 交流群: https://qm.qq.com/q/TqmRHmTmcU
- 问题反馈: https://github.com/PFingan-Code/PF-GUGUBot/issues
# Markdown 扩展
markdown_extensions:
# Python Markdown
- abbr # 缩写
- admonition # 警告框
- attr_list # 属性列表
- def_list # 定义列表
- footnotes # 脚注
- md_in_html # HTML 中的 Markdown
- toc: # 目录
permalink: true # 永久链接
permalink_title: 锚点链接
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
# Python Markdown Extensions
- pymdownx.arithmatex: # 数学公式
generic: true
- pymdownx.betterem: # 改进的强调
smart_enable: all
- pymdownx.caret # 上标下标
- pymdownx.details # 可折叠内容
- pymdownx.emoji: # 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.magiclink: # 自动链接
repo_url_shorthand: true
user: PFingan-Code
repo: PF-GUGUBot
- 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 # 删除线
# 插件
plugins:
- search: # 搜索插件
lang:
- zh
- en
separator: '[\s\u200b\-]'
- git-revision-date-localized: # Git 修订日期
enable_creation_date: true
type: datetime
timezone: Asia/Shanghai
locale: zh
fallback_to_build_date: true
# 额外配置
extra:
# 社交链接
social:
- icon: fontawesome/brands/github
link: https://github.com/PFingan-Code/PF-GUGUBot
name: GitHub 仓库
- icon: fontawesome/brands/qq
link: https://qm.qq.com/q/TqmRHmTmcU
name: QQ 交流群
# 版本
version:
provider: mike
# 分析(可选)
# analytics:
# provider: google
# property: G-XXXXXXXXXX
# 额外 CSS(可选)
# extra_css:
# - stylesheets/extra.css
# 额外 JavaScript(可选)
# extra_javascript:
# - javascripts/extra.js
# 严格模式
strict: false
# 站点目录
site_dir: site
# 文档目录
docs_dir: docs