forked from hltj/kotlin-web-site-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_nav.yml
524 lines (483 loc) · 19.2 KB
/
_nav.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
# Header navigation
# ====================
main:
content:
- url: https://www.kotliner.cn/
title: 博客
- url: https://discuss.kotliner.cn/
title: 论坛
- url: /docs/home.html
title: 文档
- url: /community/
title: 社区
- url: /education/
title: 教学
- url: https://play.kotlinlang.org
title: 演练
# Docs section navigation
# =======================
subnav:
type: tab
content:
- url: /docs/
content:
- url: /api/latest/jvm/stdlib/index.html
title: Standard Library
- url: /api/latest/kotlin.test/index.html
title: Test Library
- url: /docs/reference/grammar.html
content:
- url: /docs/reference/grammar.html
title: Grammar
- url: /spec/introduction.html
title: Language specification
- url: /community/
content:
- url: /community/
urlPattern: ^\/community\/$
title: 概述
- url: /user-groups/user-group-list.html
urlPattern: /user-groups.*
title: 用户群组
- url: /community/events.html
urlPattern: ^\/community\/(events\.html|kotlin-nights.*)
title: 活动
- url: /community/talks.html
title: 会谈与演讲者
- url: /education/
content:
- url: /education/
urlPattern: ^\/education\/$
title: 概述
- url: /education/why-teach-kotlin.html
title: 为什么讲授 Kotlin
- url: /education/courses.html
title: List of Courses
# Reference navigation
# ====================
reference:
content:
- title: 概述
description: Kotlin 的概述
content:
- url: /docs/reference/server-overview.html
title: Kotlin 用于服务器端开发
- url: /docs/reference/android-overview.html
title: Kotlin 用于 Android 开发
- url: /docs/reference/js-overview.html
title: Kotlin 用于 JavaScript 开发
- url: /docs/reference/native-overview.html
title: Kotlin 用于原生开发
- url: /docs/reference/data-science-overview.html
title: Kotlin 用于数据科学
- url: /docs/reference/coroutines-overview.html
title: 协程
- url: /docs/reference/multiplatform.html
title: 多平台
- title: 新特性
description: Kotlin 各版本的新特性
content:
- url: /docs/reference/whatsnew1430.html
title: Kotlin 1.4.30
- url: /docs/reference/whatsnew-plugin-20203.html
title: Kotlin plugin 2020.3
- url: /docs/reference/whatsnew1420.html
title: Kotlin 1.4.20
- url: /docs/reference/whatsnew14.html
title: Kotlin 1.4
- url: /docs/reference/whatsnew13.html
title: Kotlin 1.3
- url: /docs/reference/whatsnew12.html
title: Kotlin 1.2
- url: /docs/reference/whatsnew11.html
title: Kotlin 1.1
- title: 版本发布与路线图
description: Kotlin 版本发布与路线图
content:
- url: /docs/releases.html
title: Kotlin 版本发布
- url: /docs/roadmap.html
title: Kotlin 路线图
- title: 开始
description: 开始熟悉 Kotlin 基础包括操作、编码习惯与习惯用法。
content:
- url: /docs/reference/basic-syntax.html
title: 基本语法
- url: /docs/reference/idioms.html
title: 习惯用法
- url: /docs/reference/coding-conventions.html
title: 编码规范
- title: 基础
description: 基础内容
content:
- url: /docs/reference/basic-types.html
title: 基本类型
- url: /docs/reference/packages.html
title: 包与导入
- url: /docs/reference/control-flow.html
title: 控制流
- url: /docs/reference/returns.html
title: 返回与跳转
- title: 类与对象
description: 所有对象相关的
content:
- url: /docs/reference/classes.html
title: 类与继承
- url: /docs/reference/properties.html
title: 属性
- url: /docs/reference/interfaces.html
title: 接口
- url: /docs/reference/fun-interfaces.html
title: 函数式(SAM)接口
- url: /docs/reference/visibility-modifiers.html
title: 可见性修饰符
- url: /docs/reference/extensions.html
title: 扩展
- url: /docs/reference/data-classes.html
title: 数据类
- url: /docs/reference/sealed-classes.html
title: 密封类
- url: /docs/reference/generics.html
title: 泛型
- url: /docs/reference/nested-classes.html
title: 嵌套类
- url: /docs/reference/enum-classes.html
title: 枚举类
- url: /docs/reference/object-declarations.html
title: 对象
- url: /docs/reference/type-aliases.html
title: 类型别名
- url: /docs/reference/inline-classes.html
title: 内联类
- url: /docs/reference/delegation.html
title: 委托
- url: /docs/reference/delegated-properties.html
title: 委托属性
- title: 函数与 Lambda 表达式
description: 所有函数相关的
content:
- url: /docs/reference/functions.html
title: 函数
- url: /docs/reference/lambdas.html
title: Lambda 表达式
- url: /docs/reference/inline-functions.html
title: 内联函数
- title: 集合
description: Kotlin 标准库中的集合
content:
- url: /docs/reference/collections-overview.html
title: 集合概述
- url: /docs/reference/constructing-collections.html
title: 构造集合
- url: /docs/reference/iterators.html
title: 迭代器
- url: /docs/reference/ranges.html
title: 区间与数列
- url: /docs/reference/sequences.html
title: 序列
- url: /docs/reference/collection-operations.html
title: 操作概述
- url: /docs/reference/collection-transformations.html
title: 转换
- url: /docs/reference/collection-filtering.html
title: 过滤
- url: /docs/reference/collection-plus-minus.html
title: 加减操作符
- url: /docs/reference/collection-grouping.html
title: 分组
- url: /docs/reference/collection-parts.html
title: 取集合的一部分
- url: /docs/reference/collection-elements.html
title: 取单个元素
- url: /docs/reference/collection-ordering.html
title: 排序
- url: /docs/reference/collection-aggregate.html
title: 聚合操作
- url: /docs/reference/collection-write.html
title: 集合写操作
- url: /docs/reference/list-operations.html
title: List 相关操作
- url: /docs/reference/set-operations.html
title: Set 相关操作
- url: /docs/reference/map-operations.html
title: Map 相关操作
- title: 多平台程序设计
description: 跨平台复用代码
content:
- url: /docs/reference/mpp-intro.html
title: Kotlin 多平台
- url: /docs/reference/mpp-create-lib.html
title: 创建多平台库
- url: /docs/reference/mpp-discover-project.html
title: 了解项目
- url: /docs/reference/mpp-share-on-platforms.html
title: 平台间共享代码
- url: /docs/reference/mpp-connect-to-apis.html
title: 接入平台相关 API
- url: /docs/reference/mpp-set-up-targets.html
title: 手动设置目标
- url: /docs/reference/mpp-add-dependencies.html
title: 添加依赖项
- url: /docs/reference/mpp-configure-compilations.html
title: 配置编译项
- url: /docs/reference/mpp-run-tests.html
title: 运行测试
- url: /docs/reference/mpp-publish-lib.html
title: 发布多平台库
- url: /docs/reference/mpp-build-native-binaries.html
title: 构建最终原生二进制文件
- url: /docs/reference/mpp-supported-platforms.html
title: 所支持平台
- url: /docs/reference/mpp-dsl-reference.html
title: 多平台 Gradle DSL 参考
- url: /docs/reference/migrating-multiplatform-project-to-14.html
title: 迁移到 Kotlin 1.4
- title: 更多语言结构
description: 各种知识点
content:
- url: /docs/reference/multi-declarations.html
title: 解构声明
- url: /docs/reference/typecasts.html
title: 类型检测与转换
- url: /docs/reference/this-expressions.html
title: This 表达式
- url: /docs/reference/equality.html
title: 相等性
- url: /docs/reference/operator-overloading.html
title: 操作符重载
- url: /docs/reference/null-safety.html
title: 空安全
- url: /docs/reference/exceptions.html
title: 异常
- url: /docs/reference/annotations.html
title: 注解
- url: /docs/reference/reflection.html
title: 反射
- url: /docs/reference/serialization.html
title: 序列化
- url: /docs/reference/scope-functions.html
title: 作用域函数
- url: /docs/reference/type-safe-builders.html
title: 类型安全的构建器
- url: /docs/reference/opt-in-requirements.html
title: 选择加入要求
- title: 核心库
content:
- url: https://kotlinlang.org/api/latest/jvm/stdlib/index.html
title: 标准库
- url: https://kotlinlang.org/api/latest/kotlin.test/index.html
title: kotlin.test
- title: 参考
description: 语法及其他信息
content:
- url: /docs/reference/keyword-reference.html
title: 关键字与操作符
- url: /docs/reference/grammar.html
title: 语法
- url: /docs/reference/code-style-migration-guide.html
title: 编码风格约定
- title: Java 互操作
description: 关于 Kotlin 与 Java 互操作性你需要知道的。
content:
- url: /docs/reference/java-interop.html
title: Kotlin 中调用 Java
- url: /docs/reference/java-to-kotlin-interop.html
title: Java 中调用 Kotlin
- title: JavaScript
description: Kotlin 与 JavaScript 合用
content:
- url: /docs/reference/js-project-setup.html
title: 搭建项目
- url: /docs/reference/dynamic-type.html
title: 动态类型
- url: /docs/reference/js-interop.html
title: Kotlin 中调用 JavaScript
- url: /docs/reference/js-to-kotlin-interop.html
title: JavaScript 中调用 Kotlin
- url: /docs/reference/js-modules.html
title: JavaScript 模块
- url: /docs/reference/js-reflection.html
title: JavaScript 反射
- url: /docs/reference/javascript-dce.html
title: JavaScript DCE
- url: /docs/reference/js-ir-compiler.html
title: IR 编译器
- url: /docs/reference/js-external-declarations-with-dukat.html
title: 用 Dukat 生成外部声明
- title: 工具
description:
content:
- url: /docs/reference/using-gradle.html
title: Gradle
- url: /docs/reference/using-maven.html
title: Maven
- url: /docs/reference/using-ant.html
title: Ant
- url: /docs/reference/compiler-reference.html
title: 编译器选项
- url: /docs/reference/compiler-plugins.html
title: 编译器插件
- url: /docs/reference/kapt.html
title: kapt
- url: /docs/reference/kotlin-doc.html
title: Dokka
- url: /docs/reference/kotlin-osgi.html
title: OSGi
- title: 演进
description: 语言演进与兼容性
content:
- url: /docs/reference/evolution/kotlin-evolution.html
title: Kotlin 语言演进
- url: /docs/reference/evolution/components-stability.html
title: Kotlin 组件的稳定性
- url: /docs/reference/compatibility-guide-13.html
title: Kotlin 1.3 的兼容性指南
- url: /docs/reference/compatibility-guide-14.html
title: Kotlin 1.4 的兼容性指南
- url: /docs/reference/compatibility-guide-15.html
title: Compatibility Guide for Kotlin 1.5
- url: /docs/reference/compatibility-guide-16.html
title: Compatibility Guide for Kotlin 1.6
- url: /docs/reference/compatibility-guide-17.html
title: Compatibility Guide for Kotlin 1.7
- url: /docs/reference/compatibility-guide-1720.html
title: Compatibility Guide for Kotlin 1.7.20
- url: /docs/reference/compatibility-guide-18.html
title: Compatibility Guide for Kotlin 1.8.0
- url: /docs/reference/compatibility-guide-19.html
title: Compatibility Guide for Kotlin 1.9.0
- title: 常见问题
description: 你想到的问题可能会在这里得到解答。
content:
- url: /docs/reference/faq.html
title: FAQ
- url: /docs/reference/comparison-to-java.html
title: 与 Java 比较
- url: /docs/reference/comparison-to-scala.html
title: 与 Scala 比较【官方已删除】
# Tutorials navigation
# ====================
tutorials:
content:
- title: 开始
content:
- url: /docs/tutorials/getting-started.html
title: Kotlin 入门
- url: /docs/tutorials/jvm-get-started.html
title: 以 IntelliJ IDEA 入门
- url: /docs/tutorials/getting-started-eclipse.html
title: 以 Eclipse 入门
- url: /docs/tutorials/command-line.html
title: 使用命令行编译器
- url: /docs/tutorials/quick-run.html
title: 运行代码片段
- url: /docs/tutorials/build-tools.html
title: 使用构建工具
- url: /docs/tutorials/koans.html
title: 心印
- url: /docs/tutorials/competitive-programming.html
title: 竞技程序设计
- title: Java 互操作
content:
- url: /docs/tutorials/mixing-java-kotlin-intellij.html
title: 在一个项目中混用 Java 与 Kotlin
- title: JavaScript
content:
- url: /docs/tutorials/javascript/setting-up.html
title: 以 Kotlin/JS for React 入门
- url: /docs/tutorials/javascript/running-kotlin-js.html
title: 运行 Kotlin/JS
- url: /docs/tutorials/javascript/dev-server-continuous-compilation.html
title: 开发服务器与持续编译
- url: /docs/tutorials/javascript/using-packages-from-npm.html
title: 使用来自 npm 的包
- url: /docs/tutorials/javascript/debugging-kotlin-in-browser.html
title: 在浏览器中调试 Kotlin
- url: /docs/tutorials/javascript/running-tests.html
title: 运行测试
- url: /docs/tutorials/javascript/browser-api-dom.html
title: 浏览器 API 与 DOM
- url: /docs/tutorials/javascript/typesafe-html-dsl.html
title: 类型安全的 HTML DSL
- url: /docs/tutorials/javascript/working-with-modules/working-with-modules.html
title: Kotlin 与 JavaScript 模块合用
- url: /docs/tutorials/javascript/react-and-kotlin-js.html
title: 用 React 与 Kotlin/JS 构建 Web 应用程序
- title: 多平台项目
content:
- url: /docs/tutorials/mpp/intro-to-kotlin-mpp.html
title: 多平台项目简介
- url: /docs/tutorials/native/mpp-ios-android.html
title: iOS 与 Android
- url: /docs/tutorials/mpp/multiplatform-library.html
title: 多平台库
- title: 原生
content:
- url: /docs/tutorials/native/using-command-line-compiler.html
title: 使用命令行编译器的 Hello Kotlin/Native
- url: /docs/tutorials/native/using-gradle.html
title: 使用 Gradle 的 Hello Kotlin/Native
- url: /docs/tutorials/native/using-intellij-idea.html
title: 使用 IntelliJ IDEA 的 Kotlin/Native 入门
- url: /docs/tutorials/native/intro-to-kotlin-native.html
title: 在 Kotlin/Native 中创建 HTTP 客户端
- url: /docs/tutorials/native/mapping-primitive-data-types-from-c.html
title: 映射来自 C 语言的原生数据类型
- url: /docs/tutorials/native/mapping-struct-union-types-from-c.html
title: 映射来自 C 语言的结构与联合类型
- url: /docs/tutorials/native/mapping-function-pointers-from-c.html
title: 映射来自 C 语言的函数指针
- url: /docs/tutorials/native/mapping-strings-from-c.html
title: 映射来自 C 语言的字符串
- url: /docs/tutorials/native/dynamic-libraries.html
title: Kotlin/Native 开发动态库
- url: /docs/tutorials/native/apple-framework.html
title: Kotlin/Native 开发 Apple Framework
- url: /docs/tutorials/mpp/multiplatform-library.html
title: 发布 Kotlin/Native 库
- url: /docs/tutorials/native/curl.html
title: 在应用中使用 C 语言互操作与 libcurl
- url: /docs/tutorials/native/mpp-ios-android.html
title: 构建 iOS 与 Android 应用
- title: 协程
content:
- url: /docs/tutorials/coroutines/async-programming.html
title: 异步程序设计
- url: /docs/tutorials/coroutines/coroutines-basic-jvm.html
title: JVM 平台的 Kotlin 协程简介
- url: /docs/tutorials/coroutines/intro-to-coroutines-and-channels.html
title: 协程与通道简介
- url: /docs/tutorials/coroutines/debug-coroutines-with-idea.html
title: Debug coroutines using IntelliJ IDEA
- url: /docs/tutorials/coroutines/debug-flow-with-idea.html
title: Debug Kotlin Flow using IntelliJ IDEA
- title: Web 开发
content:
- url: /docs/tutorials/httpservlets.html
title: 用 Http Servlets 创建 web 应用
- url: /docs/tutorials/spring-boot-restful.html
title: 用 Spring Boot 创建 RESTful Web 服务
- url: /docs/tutorials/spring-boot-restful-db.html
title: Add a database to a Spring Boot RESTful web service
- title: 工具
content:
- url: /docs/tutorials/kotlin-and-ci.html
title: TeamCity 配置 Kotlin
- title: 教学
content:
- url: /docs/tutorials/edu-tools-learner.html
title: 通过 JetBrains 学院插件学习 Kotlin
- url: /docs/tutorials/edu-tools-educator.html
title: 通过 JetBrains 学院插件讲授 Kotlin
foundation:
content:
- url: /foundation/kotlin-foundation.html
title: Kotlin 基金会
- url: /foundation/language-committee-guidelines.html
title: 语言委员会指南
- url: /foundation/submitting-incompatible-changes.html
title: 提交不兼容的变更
- url: /foundation/guidelines.html
title: Kotlin 品牌使用指南
- url: /foundation/faq.html
title: FAQ