-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkdocs.yml
113 lines (105 loc) · 4.17 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
# [Info]
site_name: WngWai的简易博客 # 左上角标题
site_url: https://wngwai.github.io
site_author: WngWai
site_description: WngWai的简易博客
# [Navigtion]
nav:
- 相关分享:
- other/index.md
- 工具分享:
- Obsidian: "tool/Obsidian"
- 链接:
- 推荐视频: "other/Link.md"
- 外网和AI: "other/AI.md"
- 社区: "other/communites.md"
- R语言:
- R/index.md
- Rstudio配置GitHub: "tool/Git"
- R语言函数库:
- 基础知识: "R/00 基础知识.md"
- readr: "R/01 readr.md"
- dplyr: "R/02 dplyr.md"
- ggplot2: "R/03 ggplot2.md"
- 机器学习:
- ML/index.md
- 推荐视频: "ML/ML-Link.md"
- 生活:
- life/index.md
- 吃不够: "life/food-records.md"
- 睡不醒: "life/hotel.md"
- 明天会下雨: "life/predict.md"
# [UI]
## [top]
theme:
name: material
palette:
- scheme: default # 日间模式
primary: teal # 上方的
accent: orange # 链接等可交互元件的高亮色
toggle:
icon: material/brightness-4 # 图标
name: 切换至夜间模式 # 鼠标悬浮提示
- scheme: slate # 夜间模式
primary: teal
accent: orange
toggle:
icon: material/brightness-7
name: 切换至日间模式
features:
- navigation.tabs # 使用Tab来进行分类
- navigation.top # 返回顶部的按钮 在上滑时出现
- navigation.indexes # Tab会有一个index.md 而不是在打开Tab时打开第一篇文章
- navigation.expand # 打开Tab时左侧目录全部展开
- search.suggest # 搜索输入一些字母时推荐补全整个单词
- search.highlight # 搜索出的文章关键词加入高亮
- content.code.copy # 可以通过按钮复制代码
- content.action.edit # 点击按钮跳转到编辑页面 需要结合 edit_uri 一起使用
language: zh # 一些提示性的文字会变成中文
icon:
repo: fontawesome/brands/github
edit_uri: blob/main/docs # 编辑按钮跳转的链接
## [top-right corner]
repo_url: https://github.com/WngWai/wngwai.github.io # 右上角点击跳转的链接
repo_name: wngwai.github.io # 右上角的名字
## [bottom-left corner]
copyright: WngWai CC-BY-4.0 # 左下角的版权声明
## [bottom-right corner]
extra:
social: # icons
- icon: fontawesome/brands/github
link: https://wngwai.github.io
name: GitHub | WngWai
- icon: fontawesome/solid/paper-plane
link: mailto:<[email protected]> #联系方式
# [Extensions]
plugins:
- search: # 现在还不支持中文搜索 支持之后可以设置语言
# insider已经支持中文的分词搜索了 https://squidfunk.github.io/mkdocs-material/blog/2022/chinese-search-support/
lang:
- en
- ja
- tags # 给单篇文章添加标签 https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/?h=tags
markdown_extensions:
- pymdownx.arithmatex: # latex支持
generic: true
- attr_list # 给图片后面添加{width="300"}设置大小
- toc:
permalink: true # 固定标题位置为当前位置
- pymdownx.highlight: # 代码块高亮
# linenums: true # 显示行号
# auto_title: true # 显示编程语言名称
- pymdownx.superfences # 代码块高亮插件
- meta # 支持Markdown文件上方自定义标题标签等
- admonition # https://squidfunk.github.io/mkdocs-material/reference/admonitions/#inline-blocks
- pymdownx.details # admonition需要
extra_javascript:
# latex支持
# check https://squidfunk.github.io/mkdocs-material/reference/mathjax/?h=math for more information
# notice `curl https://polyfill.io/v3/polyfill.min.js?features=es6 > docs/mkdocs/javascripts/polyfill.min.js && curl https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js > docs/mkdocs/javascripts/tex-mml-chtml.js` not works... because there are other resources that need to load
- mkdocs/javascripts/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js # https://cdn.bytedance.com/?query=mathjax&version=3.2.0
extra_css:
- mkdocs/css/no-footer.css # 不使用底部的翻页
- mkdocs/css/unordered-list-symbols.css # multiplt unordered list symbols