-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmkdocs.yml
122 lines (118 loc) · 4.3 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
# [Info]
site_name: THU 移动应用开发 Flutter 教程 # 左上角标题
site_url: https://thu-mobile-dev.github.io/book
site_author: 杨希杰
site_description: THU 移动应用开发 Flutter 教程
# [Navigtion]
nav:
- 前言:
- LECTURE/0/introduction.md
- LECTURE/0/plan.md
- LECTURE/0/contact-us.md
- LECTURE/0/welcome-edit.md
- 第一讲 体验:
- LECTURE/1/introduction.md
- LECTURE/1/main-todoapp.md
- 补充:
- LECTURE/1/flutter-installation.md
- LECTURE/1/simulator-windows-android.md
- LECTURE/1/simulator-macos-android.md
- LECTURE/1/simulator-macos-ios.md
- 第二讲 背景:
- LECTURE/2/introduction.md
- LECTURE/2/main-design.md
- LECTURE/2/main-flutter-intro.md
- 第三讲 Dart:
- LECTURE/3/introduction.md
- LECTURE/3/main-dart.md
- 第四讲 入门:
- LECTURE/4/introduction.md
- LECTURE/4/main-widgets.md
- LECTURE/4/main-stateful.md
- 补充:
- LECTURE/4/assets.md
- 第五讲 进阶:
- LECTURE/5/introduction.md
- LECTURE/5/main-layout.md
- LECTURE/5/main-animation.md
- LECTURE/5/main-examples.md
- 第六讲 数据持久化:
- LECTURE/6/introduction.md
- LECTURE/6/main-local.md
- LECTURE/6/main-cloud.md
- 第七讲 后续工作:
- LECTURE/7/introduction.md
- LECTURE/7/main-debug-and-test.md
- LECTURE/7/main-ci-and-cd.md
- LECTURE/7/main-release.md
- 第八讲 扩展:
- LECTURE/8/introduction.md
- LECTURE/8/main-adaptive-and-responsive.md
- LECTURE/8/main-packages.md
- 补充:
- LECTURE/8/native-battery-ios.md
- 后记:
- LECTURE/9/introduction.md
- 其他:
- LECTURE/10/quick-start.md
- LECTURE/10/teaching-notes.md
- LECTURE/10/docs-differences.md
- LECTURE/10/improvement.md
# [Extensions]
plugins:
- search: # 现在还不支持中文搜索 支持之后可以设置语言
# insider已经支持中文的分词搜索了 https://squidfunk.github.io/mkdocs-material/blog/2022/chinese-search-support/
lang:
- en
# - 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需要
# [UI]
## [top]
theme:
name: material
palette:
- scheme: default # 日间模式
primary: indigo # 上方的
accent: orange # 链接等可交互元件的高亮色
toggle:
icon: material/weather-night # 图标
name: 切换至夜间模式 # 鼠标悬浮提示
- scheme: slate # 夜间模式
primary: indigo
accent: orange
toggle:
icon: material/weather-sunny
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: edit/main/docs # 编辑按钮跳转的链接
## [top-right corner]
repo_url: https://github.com/thu-mobile-dev/book # 右上角点击跳转的链接
repo_name: thu-mobile-dev/book # 右上角的名字
## [bottom-left corner]
copyright: THU 移动应用开发 课程团队 / Creative Commons Attribution 4.0 # 左下角的版权声明
extra_css:
- mkdocs/css/no-footer.css # 不使用底部的翻页
- mkdocs/css/unordered-list-symbols.css # multiplt unordered list symbols