-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkdocs.yml
198 lines (185 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
#[Info]
repo_url : https://github.com/HughTaiyaki/momo-Belia.github.io
site_name: Taiyaki's Notebook
site_author: Hugh Yau
#[UI]
theme:
name: material
language: 'zh' # 使用中文
# custom_dir: docs/overrides #覆写路径
# font: #谷歌字体,自行搜索
# text: Bitter #文本字体
# code: Roboto Mono #代码字体
logo: img/favicon.png
favicon: img/favicon.png
palette:
# - media: "(prefers-color-scheme)"
# toggle:
# icon: material/link
# name: 关闭自动模式
#primary: blue grey
- media: "(prefers-color-scheme: light)"
scheme: default # 日间模式
primary: blue grey # 上方的
accent: blue # 链接等可交互元件的高亮色
# teal
toggle:
icon: material/toggle-switch # 图标
name: 切换至夜间模式 # 鼠标悬浮提示
- media: "(prefers-color-scheme: dark)"
scheme: slate # 夜间模式
primary: black
accent: indigo
# teal
toggle:
icon: material/toggle-switch-off-outline
name: 切换至日间模式
features:
- announce.dismiss #呈现可标记为由用户读取的临时公告,可以包含一个用于取消当前公告的按钮
# - navigation.instant
#- header.autohide #自动隐藏
- navigation.tracking #地址栏中的 URL 将自动更新为在目录中突出显示的活动锚点
- navigation.tabs #顶级部分将呈现在上面视口标题下方的菜单层中,但在移动设备上保持原样
# - navigation.tabs.sticky #启用粘性选项卡后,导航选项卡将锁定在标题下方,并在向下滚动时始终保持可见
# - navigation.sections #启用部分后,顶级部分在边栏中呈现为1220px以上视口的组,但在移动设备上保持原样
- navigation.top # 返回顶部的按钮 在上滑时出现
- navigation.footer #页脚将呈现在边栏中,但在移动设备上保持原样
- search.suggest # 搜索输入一些字母时推荐补全整个单词
- search.highlight # 搜索出的文章关键词加入高亮
- search.share #搜索分享按钮
# - navigation.expand # 打开Tab时左侧目录全部展开
- navigation.indexes #启用节索引页后,可以将文档直接附加到节
- content.tabs.link
- content.tooltips
- content.code.copy #代码复制
- content.action.edit
- content.action.view
- content.code.annotate
language: zh # 一些提示性的文字会变成中文
icon:
repo: fontawesome/brands/github #右上角图标
logo: logo
edit_uri: edit/main/docs # 编辑按钮跳转的链接
repo_url: https://github.com/HughTaiyaki# 右上角点击跳转的链接
repo_name: HughTaiyaki # 右上角的名字
# [Navigtion]
nav: #目录
- 🏠 主页: index.md # 博客入口
- 🐭 Go学习:
- Go学习: blog/Go/index.md # 默认Go主页
- 1.1 基础语法: blog/Go/base/a.md
- 💻 核心知识:
- 数据结构与算法基础:
- 数据结构与算法: blog/Algorithm/index.md # 设置
- 计算机网络:
- 主页: blog/Network/index.md # 默认计网主页
- Internet for kids: blog/Network/easyNet.md
- 操作系统:
- 主页: blog/OS/index.md # 默认数据库主页
- WebServer:
- 主页: blog/OS/WebServer_L/index.md
- 数据库系统:
- 主页: blog/DatabaseIntro/index.md # 默认数据库主页
- MySQL:
- 主页: blog/DatabaseIntro/MySQL_L/index.md
- Redis:
- 主页: blog/DatabaseIntro/Redis_L/index.md
- CMU15-445:
- 主页: blog/DatabaseIntro/CMU15-445_L/index.md
- 📦 杂项:
- Docker:
- Docker: blog/Others/Docker/index.md # 默认杂项主页
- Kubernetes:
- Kubernetes (k8s): blog/Others/k8s/index.md # 默认杂项主页
- Makefile: blog/Others/MakefileLearn.md
- 🔗 友链:
- 友链: about/link.md
- 😭 关于:
- Spin Me: about/hugh.md
- 功能测试: about/test.md
copyright: Copyright © 2024 HughTaiyaki/All Rights Reserved. # 左下角的版权声明
# extra:
# generator: true #是否删除页脚显示“使用 MkDocs 材料制造”
#
# analytics:
# provider: google #谷歌分析
# property:
plugins:
- search #搜索配置
# - blog: #博客配置
# post_date_format: full #时间
# draft: true
# draft_if_future_date: true #自动将具有未来日期的帖子标记为草稿
# post_readtime: true
# post_readtime_words_per_minute: 265 #计算帖子的阅读时间时读者每分钟预计阅读的字数
# post_url_format: "{date}/{slug}"
# # categories_slugify: !!python/object/apply:pymdownx.slugs.slugify
# # kwds:
# # case: lower
# pagination_url_format: "page/{page}"
# authors_file: "{blog}/.authors.yml" #作者信息
# - tags:
# tags_file: tag.md #分类标签
markdown_extensions: #详见https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/ 和 https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/
- abbr
- attr_list
- admonition
- def_list
- footnotes
- md_in_html
# - meta # 支持Markdown文件上方自定义标题标签等
- pymdownx.caret
- pymdownx.betterem
- pymdownx.critic
- pymdownx.details
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.mark
- pymdownx.snippets
- pymdownx.smartsymbols
- pymdownx.tilde
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format:
!!python/name:pymdownx.superfences.fence_code_format # 代码块高亮插件
- pymdownx.arithmatex: # latex支持
generic: true
- toc:
permalink: true # 固定标题位置为当前位置
- pymdownx.highlight: # 代码块高亮
anchor_linenums: true
linenums: true # 显示行号
# auto_title: true # 显示编程语言名称
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
- markdown.extensions.toc:
slugify: !!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}
permalink: "\ue157"
extra_javascript:
- _js/extra.js #自定义javascript
- _js/mathjax.js #Latex支持
- https://polyfill.io/v3/polyfill.min.js?features=es6 #Latex支持
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js #Latex支持
# - ckplayer/js/ckplayer.js #播放器配置
# - https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js #gitalk支持
- https://cdn.jsdelivr.net/npm/[email protected]/dist/add-html-label-6e56ed67.min.js #忘了
extra_css:
- _css/extra.css # 自定义CSS
- _css/link.css #友链配置
- _css/customize.css # 搜索圆角优化
# - stylesheets/video.css #播放器可选配置
# - https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.css #gitalk支持
# - ckplayer/css/ckplayer.css #播放器配置
- https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css # font-awesome表情支持
# - https://cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/css/share.min.css #分享支持
- https://cdn.jsdelivr.net/npm/[email protected]/style.css #字体
# - https://cdn.jsdelivr.net/npm/[email protected]/style.css #字体
# - https://cdn.jsdelivr.net/npm/[email protected]/style.css #字体
# - https://cdn.jsdelivr.net/npm/[email protected]/style.css #字体