forked from x2rs/x2rs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdocs.yml
More file actions
107 lines (101 loc) · 4.14 KB
/
mkdocs.yml
File metadata and controls
107 lines (101 loc) · 4.14 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
site_name: x2rs的小站
site_url: https://x2rs.github.io
site_author: x2rs
site_description: My personal documentation website.
nav:
- 主页:
- index.md
- todo.md
- 笔记:
- notes/Cramer-Rao.md
- notes/physics.md
- 杂项:
- matlab/simple_linear.md
- useful_apps.md
theme:
name: material
# [切换日间模式和夜间模式]
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-palette-toggle
palette:
# 日间模式
- scheme: default
# 主颜色
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#primary-color
primary: indigo
# 链接等可交互元件的高亮色
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#accent-color
accent: orange
toggle:
# 图标
icon: material/weather-night
# 鼠标悬浮提示
name: 切换至夜间模式
# 夜间模式
- scheme: slate
primary: indigo
accent: orange
toggle:
icon: material/weather-sunny
name: 切换至日间模式
language: zh # 一些提示性的文字会变成中文
features:
# 使用 Tab 来进行分类
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-tabs
- navigation.tabs
# 返回顶部的按钮,在上滑时出现
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#back-to-top-button
- navigation.top
# 给每个 Tab 添加一个 index.md,且在点击 Tab 时打开
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages-with-section-index-pages
- navigation.indexes
# 打开 Tab 时左侧目录全部展开
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-expansion
- navigation.expand
# 搜索输入一些字母时推荐补全整个单词
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/#search-suggestions
- search.suggest
# 搜索的关键词文章加入高亮
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/#search-highlighting
- search.highlight
# 可以通过按钮复制代码
# https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#code-copy-button
- content.code.copy
# [点击按钮跳转至 GitHub 修改 Markdown 源文件]
# https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#code-actions
- content.action.edit
# [点击按钮跳转至 GitHub 修改 Markdown 源文件]
# https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#code-actions
edit_uri: edit/main/docs/
# [top-right corner]
# [添加 GitHub 仓库]
# https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/
repo_url: https://github.com/x2rs/x2rs.github.io
repo_name: x2rs.github.io
markdown_extensions:
# [代码语法高亮]
# https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#code-blocks
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight
- pymdownx.highlight:
# 显示行号
linenums: true
# 显示编程语言名称
auto_title: true
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.line_spans
line_spans: __span
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.highlight.pygments_lang_class
pygments_lang_class: true
# [任务清单勾选框]
# https://squidfunk.github.io/mkdocs-material/reference/lists/#configuration
- def_list
- pymdownx.tasklist:
custom_checkbox: true
extra_javascript:
# [数学公式支持]
# https://squidfunk.github.io/mkdocs-material/reference/math/#katex
- scripts/katex.js
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/contrib/auto-render.min.js
extra_css:
# [数学公式支持]
# https://squidfunk.github.io/mkdocs-material/reference/math/#katex
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.css