From f68adb4af9550b4971e5bc2bc82885c7e7c39dd9 Mon Sep 17 00:00:00 2001 From: Dongxu Wang Date: Mon, 22 Nov 2021 16:58:16 +0800 Subject: [PATCH] [zh-cn] Add translation for scala 3 guides index page. --- _zh-cn/index.md | 2 +- _zh-cn/scala3/guides.md | 78 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 _zh-cn/scala3/guides.md diff --git a/_zh-cn/index.md b/_zh-cn/index.md index 93d0b0514f..fd73fb62fc 100644 --- a/_zh-cn/index.md +++ b/_zh-cn/index.md @@ -32,7 +32,7 @@ scala3-sections: - title: "导览" description: "关于语言特别之处的详细导览" icon: "fa fa-map" - link: /scala3/guides.html + link: /zh-cn/scala3/guides.html - title: "Scala 库 API" description: "Scala 3 标准库API文档(多个小版本)" icon: "fa fa-file-alt" diff --git a/_zh-cn/scala3/guides.md b/_zh-cn/scala3/guides.md new file mode 100644 index 0000000000..87b168d7b7 --- /dev/null +++ b/_zh-cn/scala3/guides.md @@ -0,0 +1,78 @@ +--- +layout: inner-page-parent +title: Guides on Scala 3 +language: zh-cn +scala3: true + +guides: + - title: "从 Scala 2 到 Scala 3 的迁移" + icon: suitcase + url: "/scala3/guides/migration/compatibility-intro.html" + description: "迁移至 Scala 3 的兼容性须知" + - title: 宏 + by: Nicolas Stucki + icon: magic + url: "/scala3/guides/macros" + description: "覆盖 Scala 3 中涉及到编写宏的所有特性的详细导引" + label-text: 特性 + - title: TASTy 概览 + by: Alvin Alexander + icon: birthday-cake + url: "/scala3/guides/tasty-overview.html" + description: "针对 Scala 语言最终用户的 TASTy 格式概览" + - title: "贡献指南" + by: Jamie Thompson, Anatolii Kmetiuk + icon: cogs + url: "/scala3/guides/contribution/contribution-intro.html" + description: "Scala 3 编译器指南及如何贡献代码" + - title: Scaladoc + by: Krzysztof Romanowski, Aleksander Boruch-Gruszecki, Andrzej Ratajczak, Kacper Korban, Filip Zybała + icon: book + url: "/scala3/guides/scaladoc" + description: "Scala 的 API 文档生成工具" +--- + +
+
+
+
+

概览与导引

+

+ Scala 3 语言及其特性的详细导引 +

+
+ {% for overview in page.guides %} +
+
+
+ {% if overview.icon %} +
+
+
+ {% endif %} +

{{ overview.title }}

+
+
+ {% if overview.label-text %}
{{ overview.label-text }}
{% endif %} + {% if overview.by %}
By {{ overview.by }}
{% endif %} + {% if overview.description %}

{{ overview.description }}

{% endif %} + {% if overview.subdocs %} + Contents + + {% endif %} +
+
+ +
+ {% endfor %} +
+
+
+
+