Skip to content

Commit 12a23b4

Browse files
authored
Update: Add 'about' to the navigation menu (#1614)
2 parents 4a81a9a + a988fb7 commit 12a23b4

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

sites/docs/lib/src/components/layout/header.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ class DashHeader extends StatelessComponent {
7272
label: 'API 参考',
7373
openInNewTab: true,
7474
),
75+
// docs.flutter.cn
76+
const _NavItem(
77+
href: '/about',
78+
label: '关于中文文档',
79+
),
7580
]),
7681

7782
div(

sites/docs/lib/src/components/layout/sidenav.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ final class DashSideNav extends StatelessComponent {
5454
label: 'API 参考',
5555
iconId: 'api',
5656
),
57+
// docs.flutter.cn
58+
const _TopNavItem(
59+
href: '/about',
60+
label: '关于中文文档',
61+
iconId: 'favorite',
62+
),
5763
const _SideNavDivider(),
5864
]),
5965

sites/docs/src/content/about/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ Flutter 的魅力之一是开源开放,Flutter 由 Google 主导,与全球
1414
这是一份由中国 Flutter 社区开发者们协作完成、与官方保持同步更新的中文文档,希望
1515
能够帮助国内、以及全球讲中文的开发者更好的了解 Flutter。
1616

17+
{% comment %}
18+
<!-- 为了中文 SEO 的友好收录(避免中英混排),暂时去除了以下功能 -->
1719
点击文档的中文会显示英文原文,这能帮助你更全面的理解文档、体会文档作者希望
1820
传达的内容,也同时方便大家为文档里晦涩难懂的中文翻译提供对比、纠错和完善。
21+
{% endcomment %}
1922

2023
## 感谢名单
2124

0 commit comments

Comments
 (0)