-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkdocs.yml
154 lines (136 loc) · 3.56 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
---
# This file is used to split config and docs navigation
INHERIT: navigation.yml
# Project information
site_name: Michael Yao's Website
site_url: https://aikdocs.github.io/michaelyao/
site_author: michael.yao
site_description: >-
This is a website made by Michael Yao
# copyright
copyright: Copyright © 2016 - 2024 Michael.Yao
# Repository
repo_name: aikdocs/michaelyao
repo_url: https://github.com/aikdocs/michaelyao
edit_uri: edit/main/docs/
use_directory_urls: false # disable https://www.mkdocs.org/user-guide/configuration/#use_directory_urls
strict: false # enable strict mode, https://www.mkdocs.org/user-guide/configuration/#strict
# Configuration
theme:
name: material
language: zh
features:
- content.code.annotate
- content.code.copy
- content.tooltips
- content.action.edit
- content.action.view
- navigation.indexes
- navigation.tabs
- navigation.instant
- navigation.prune
- navigation.sections
- navigation.tabs.sticky
- navigation.tracking
- navigation.top
- search.highlight
- search.suggest
- search.share
- toc.follow
- navigation.path
- navigation.footer
# - toc.integrate
palette:
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference
font:
text: Roboto
code: Roboto Mono
favicon: images/favicon.ico
logo: images/head.png
icon:
logo: logo
repo: fontawesome/brands/github
# Plugins
plugins:
search:
lang:
zh
en
swagger-ui-tag: # enable swagger-ui-tag plugin
git-revision-date-localized:
enable_creation_date: false
git-committers:
repository: windsonsea/michaelyao
branch: main
# Customization Javascript
extra_javascript:
- stylesheets/zoom_image.js
# - https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js # disable fix mermaid not working
# Customization css
extra_css:
- stylesheets/custom.css
# Extensions
markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- meta
- md_in_html
- tables
- toc:
permalink: true
title: 导航
toc_depth: 3
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.details
- pymdownx.emoji:
# emoji_index: !!python/name:materialx.emoji.twemoji
# emoji_generator: !!python/name:material.extensions.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.magiclink:
repo_url_shorthand: true
user: Sophongo
repo: Sophongo-docs
- 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
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
- pymdownx.critic
- pymdownx.snippets
# auto_append:
# - includes/glossary.md