forked from vapor/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkdocs.yml
218 lines (200 loc) · 5.27 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# Project information
site_name: Vapor Docs
site_url: https://docs.vapor.codes/
site_author: Vapor Community
site_description: Vapor 4's documentation (web framework for Swift).
# Repository
repo_name: Vapor GitHub
repo_url: http://github.com/vapor/vapor
edit_uri: https://github.com/vapor/documentation/edit/main/docs/
# Copyright
copyright: "Copyright © Vapor Community"
# Configuration
theme:
name: material
custom_dir: theme/
language: en
locale: en
font: false
palette:
primary: black
accent: blue
logo: assets/logo.png
favicon: assets/favicon.png
features:
- search.suggest
- search.highlight
# Customization
extra:
# Font
font:
text: Roboto Slab
code: Source Code Pro
# Social
social:
- icon: fontawesome/brands/twitter
link: https://twitter.com/codevapor
- icon: fontawesome/brands/discord
link: https://discord.gg/vapor
- icon: fontawesome/brands/github
link: https://github.com/vapor
extra_css:
- stylesheets/syntax.css
- stylesheets/fonts.css
extra_javascript:
- javascripts/syntax.js
# Extensions
markdown_extensions:
- admonition
- footnotes
- meta
- toc:
permalink: true
# Plugins
plugins:
- search:
lang: en
# i18n plugin documentation
# https://github.com/ultrabug/mkdocs-static-i18n
- i18n:
default_language: 'en'
search_reconfigure: false
material_alternate: true
# Add the new languages here. DON'T CHANGE THE DEFAULT LANGUAGE
languages:
en:
name: English
build: true
zh:
name: 简体中文
site_name: Vapor 中文文档
build: true
nl:
name: Nederlands
site_name: Vapor Documentatie
build: true
fr:
name: Français
site_name: Documentation Vapor
build: true
de:
name: German
site_name: Vapor Dokumentation
build: true
# Add navigation translations here
nav_translations:
nl:
Welcome: Welkom
fr:
Welcome: Bienvenue
de:
Welcome: Willkommen
zh:
Welcome: 序言
Install: 安装
Getting Started: 开始
Hello, world: 你好世界
Folder Structure: 项目结构
SPM: SPM
Xcode: Xcode
Basics: 入门
Routing: 路由
Content: 内容
Client: 客户端
Validation: 验证
Async: 异步
Logging: 日志
Environment: 环境
Errors: 错误
Fluent: Fluent
Overview: 概述
Model: 模型
Relations: 关联
Migrations: 迁移
Query: 查询
Transactions: 事务
Schema: 模式
Leaf: Leaf
Redis: Redis
Advanced: 进阶
Middleware: 中间件
Testing: 测试
Server: 服务
Files: 文件
Commands: 命令
Queues: 队列
WebSockets: 即时通讯
Sessions: 会话
Services: 拓展
Security: 安全
APNS: 推送
Deploy: 部署
Authentication: 认证
Crypto: 加密
Passwords: 密码
JWT: 认证
Version (4.0): 版本
nav:
- Welcome: "index.md"
- Install:
- macOS: "install/macos.md"
- Linux: "install/linux.md"
- Getting Started:
- Hello, world: "getting-started/hello-world.md"
- Folder Structure: "getting-started/folder-structure.md"
- SPM: "getting-started/spm.md"
- Xcode: "getting-started/xcode.md"
- Basics:
- Routing: "basics/routing.md"
# TODO: Improve quality
# Mostly just a code sample with little explanation.
# - Controllers: "controllers.md"
- Content: "basics/content.md"
- Client: "basics/client.md"
- Validation: "basics/validation.md"
- Async: "basics/async.md"
- Logging: "basics/logging.md"
- Environment: "basics/environment.md"
- Errors: "basics/errors.md"
- Fluent:
- Overview: "fluent/overview.md"
- Model: "fluent/model.md"
- Relations: "fluent/relations.md"
- Migrations: "fluent/migration.md"
- Query: "fluent/query.md"
- Transactions: "fluent/transaction.md"
- Schema: "fluent/schema.md"
- Advanced: "fluent/advanced.md"
- Leaf:
- Getting Started: "leaf/getting-started.md"
- Overview: "leaf/overview.md"
- Custom Tags: "leaf/custom-tags.md"
- Redis:
- Overview: "redis/overview.md"
- Sessions: "redis/sessions.md"
- Advanced:
- Middleware: "advanced/middleware.md"
- Testing: "advanced/testing.md"
- Server: "advanced/server.md"
- Files: "advanced/files.md"
- Commands: "advanced/commands.md"
- Queues: "advanced/queues.md"
- WebSockets: "advanced/websockets.md"
- Sessions: "advanced/sessions.md"
- Services: "advanced/services.md"
- APNS: "advanced/apns.md"
- Security:
- Authentication: "security/authentication.md"
- Crypto: "security/crypto.md"
- Passwords: "security/passwords.md"
- JWT: "security/jwt.md"
- Deploy:
- DigitalOcean: "deploy/digital-ocean.md"
- Heroku: "deploy/heroku.md"
- Supervisor: "deploy/supervisor.md"
- Systemd: "deploy/systemd.md"
- Nginx: "deploy/nginx.md"
- Docker: "deploy/docker.md"
- Version (4.0):
- Legacy Docs: "version/legacy-docs.md"
- Upgrading: "upgrading.md"