Skip to content

Commit 4b83700

Browse files
committed
docs: restructure and refine sidebar positions for improved navigation
- Adjusted `sidebar_position` for multiple doc files for better organization. - Added and updated `_category_.json` files for grouped documentation sections. - Improved badge syntax consistency by replacing self-closing tags.
1 parent 50f487b commit 4b83700

File tree

11 files changed

+31
-8
lines changed

11 files changed

+31
-8
lines changed

docs/docs/features/mark-name.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import Tabs from '@theme/Tabs';
88
import TabItem from '@theme/TabItem';
99
import { ExperimentalBadge, VersionBadge } from '@site/src/components/Snippets';
1010

11-
<ExperimentalBadge />
12-
<VersionBadge version="0.13.0" />
11+
<ExperimentalBadge></ExperimentalBadge>
12+
<VersionBadge version="0.13.0"></VersionBadge>
1313

1414
You can use `markName` to add a name mark annotation (e.g. `@JvmName`, `@JsName`) to the generated synthetic function.
1515

docs/docs/possibly-useful/wasmjs-limitations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ sidebar_position: 2
66

77
import { ExperimentalBadge, VersionBadge } from '@site/src/components/Snippets';
88

9-
<ExperimentalBadge />
10-
<VersionBadge version="0.6.0" />
9+
<ExperimentalBadge></ExperimentalBadge>
10+
<VersionBadge version="0.6.0"></VersionBadge>
1111

1212
WasmJS support is experimental and has several limitations:
1313

docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/configuration/configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: 配置
3+
sidebar_position: 1
34
---
45

56
本指南介绍如何配置 Kotlin 挂起函数转换编译器插件扩展。

docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/configuration/custom-transformers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: custom-transformers
33
title: 自定义转换器
4+
sidebar_position: 3
45
---
56

67
import { VersionBadge } from '@site/src/components/Snippets';

docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/configuration/default-transformers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: default-transformers
33
title: 默认转换器
4+
sidebar_position: 2
45
---
56

67
import Tabs from '@theme/Tabs';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "功能特性",
3+
"position": 5,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Kotlin 挂起函数转换编译器插件的功能特性"
7+
}
8+
}

docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/features/mark-name.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
id: mark-name
33
title: MarkName
4+
sidebar_position: 1
45
---
56

67
import Tabs from '@theme/Tabs';
78
import TabItem from '@theme/TabItem';
89
import { ExperimentalBadge, VersionBadge } from '@site/src/components/Snippets';
910

10-
<ExperimentalBadge />
11-
<VersionBadge version="0.13.0" />
11+
<ExperimentalBadge></ExperimentalBadge>
12+
<VersionBadge version="0.13.0"></VersionBadge>
1213

1314
您可以使用 `markName` 向生成的合成函数添加名称标记注解(例如 `@JvmName``@JsName`)。
1415

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "可能有用",
3+
"position": 6,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "关于 Kotlin 挂起函数转换编译器插件的其他有用信息"
7+
}
8+
}

docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/possibly-useful/examples.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: examples
33
title: 示例
4+
sidebar_position: 3
45
---
56

67
import Tabs from '@theme/Tabs';

docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/possibly-useful/jsexport-integration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: jsexport-integration
33
title: JsExport 集成
4+
sidebar_position: 1
45
---
56

67
如果您想将 `@JsExport` 与默认 JS 配置一起使用,

0 commit comments

Comments
 (0)