-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmkdocs.yml
137 lines (130 loc) · 5.43 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
site_name: Rust中文宝典
site_author: "Leon Ding"
repo_name: "auula/learn-rust"
repo_url: "https://github.com/auula/learn-rust"
docs_dir: "source"
site_dir: "docs"
theme:
name: material
logo: "/images/rust-logo-white.png"
favicon: "images/rust-logo.png"
# palette:
# primary: "black"
# accent: "indigo"
# scheme: slate
font:
text: "Roboto"
code: "Roboto Mono"
custom_dir: overrides
language: zh
palette:
# data-md-color-scheme
# Toggle light mode
- scheme: default
primary: black
accent: black
# toggle:
# icon: material/toggle-switch
# name: Switch to light mode
#Toggle dark mode
# - scheme: slate
# primary: blue
# accent: blue
# toggle:
# icon: material/toggle-switch-off-outline
# name: Switch to dark mode
nav:
- 关于本站: index.md
- 基础知识:
- "Rust 介绍": docs/introduction.md
#- "Rust 基础教程": basics.md
- "Rust 开发环境搭建": docs/environment.md
- "Rust 您好世界": docs/hello_world.md
- "Rust 数据类型": docs/scalar_type.md
- "Rust 变量定义": docs/variable.md
# - "Rust 常量定义": const.md
- "Rust 字符串": docs/string_type.md
- "Rust 运算符": docs/operator.md
- "Rust 条件判断": docs/condition.md
- "Rust 循环语句": docs/loop_for.md
- "Rust 函数定义": docs/function.md
- "Rust 元组Tuple": docs/tuple.md
- "Rust 数组的使用": docs/array.md
# - "Rust 切片Slice": slice.md
- "Rust 枚举使用": docs/struct.md
- "Rust 结构体": docs/struct.md
- "Vector容器类型": docs/vector.md
- "VecDeque容器类型": docs/vecdeque.md
- "HashMap容器类型": docs/hashmap.md
- "Rust高阶函数": docs/higher.md
- "Rust泛型和Trait系统": docs/generic_trait.md
- 高级部分:
- "Rust ownership": docs/ownership.md
- "Rust 引用和借用规则": docs/borrow.md
- "Rust 生命周期": docs/lifetime.md
- "Rust 智能指针": docs/smart_pointer.md
- "Rust 模块Modules": modules.md
- "Rust Collection": collection.md
- "Rust 错误处理": error.md
- "Rust 泛型使用": generosity.md
- "Rust I/O操作": w_r_io.md
- "Rust 包管理Cargo": cargo.md
- "Rust 迭代器 Iterator": iterator.md
- "Rust 闭包 Closure": closure.md
- "Rust 智能指针": pointer.md
- "Rust 并发编程": thread.md
extra:
social:
- icon: fontawesome/brands/twitter
link: https://twitter.com/JarvibDing
- icon: book
link: https://rustmagazine.github.io/rust_magazine_2021
- icon: youtube
link: https://github.com/higker/learn-rust
- icon: github
link: https://github.com/higker
alternate:
# Switch to English
- name: 简体中文
link: https://getrust.tech/
lang: zh
# Switch to Japanese
- name: 日本語
link: https://getrust.tech/ja/
lang: ja
copyright: "Copyright © 2021 Jarvib Ding"
markdown_extensions:
- admonition # 提示块
- footnotes # 脚注
- meta # 定义元数据,通过文章上下文控制,如disqus
- pymdownx.caret # 下划线上标
- pymdownx.tilde # 删除线下标
- pymdownx.critic # 增加删除修改高亮注释,可修饰行内或段落
- pymdownx.details # 提示块可折叠
- pymdownx.inlinehilite # 行内代码高亮
- pymdownx.mark # 文本高亮
- pymdownx.smartsymbols # 符号转换
- pymdownx.superfences # 代码嵌套在列表里
- codehilite: # 代码高亮,显示行号
guess_lang: true
linenums: true
- toc: # 锚点
permalink: true
# - pymdownx.arithmatex # 数学公式
- pymdownx.betterem: # 对加粗和斜体更好的检测
smart_enable: all
# - pymdownx.emoji: # 表情
# emoji_generator: !!python/name:pymdownx.emoji.to_svg
# - pymdownx.magiclink # 自动识别超链接
- pymdownx.tasklist: # 复选框checklist
custom_checkbox: true
- pymdownx.emoji:
options:
custom_icons:
- overrides/icons
extra_css:
- "assets/css/theme.css"
# - "assets/stylesheets/codehilite.css"
extra_javascript:
- "//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"
- "assets/js/theme.js"