Skip to content

Commit bc07f4d

Browse files
authored
docs: refactor section headers (#1342)
1 parent 3ee894b commit bc07f4d

File tree

25 files changed

+161
-173
lines changed

25 files changed

+161
-173
lines changed

website/docs/en/blog/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Overview
33
sidebar: false
4-
pageType: doc-wide
54
---
65

76
# Rslib blogs

website/docs/en/blog/introducing-rslib.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
date: 2025-05-14 10:00:00
33
sidebar: false
4-
pageType: doc-wide
54
---
65

76
_May 14, 2025_

website/docs/en/config/_meta.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[
22
{
3-
"type": "file",
4-
"name": "index",
5-
"label": "Config Overview"
3+
"type": "section-header",
4+
"label": "Overview"
65
},
6+
"index",
77
{
8-
"type": "dir",
8+
"type": "dir-section-header",
99
"name": "lib",
10-
"label": "Lib Configurations"
10+
"label": "Lib configurations"
1111
},
1212
{
13-
"type": "dir",
13+
"type": "dir-section-header",
1414
"name": "rsbuild",
15-
"label": "Rsbuild Configurations"
15+
"label": "Rsbuild configurations"
1616
}
1717
]

website/docs/en/config/index.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
---
2-
overview: true
3-
title: Config Overview
2+
pageType: doc-wide
3+
outline: false
44
---
55

6+
# Config overview
7+
68
This page lists all the configurations for Rslib. See [Configure Rslib](/guide/basic/configure-rslib) for detail.
9+
10+
import Overview from '@components/Overview';
11+
12+
<Overview />
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
[
2-
"format",
3-
"bundle",
2+
"index",
43
"auto-extension",
54
"auto-external",
6-
"redirect",
7-
"syntax",
8-
"external-helpers",
95
"banner",
10-
"footer",
6+
"bundle",
117
"dts",
12-
"shims",
8+
"experiments",
9+
"external-helpers",
10+
"footer",
11+
"format",
1312
"id",
14-
"umd-name",
1513
"out-base",
16-
"experiments"
14+
"redirect",
15+
"shims",
16+
"syntax",
17+
"umd-name"
1718
]

website/docs/en/config/lib/index.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
# Lib configurations
1+
# Overview
22

33
- **Type:**
44

55
```ts
66
interface LibConfig extends EnvironmentConfig {
7-
format?: Format;
8-
bundle?: boolean;
97
autoExtension?: boolean;
108
autoExternal?: AutoExternal;
11-
redirect?: Redirect;
12-
syntax?: Syntax;
13-
externalHelpers?: boolean;
149
banner?: BannerAndFooter;
10+
bundle?: boolean;
11+
dts?: Dts;
12+
experiments?: { advancedEsm?: boolean };
13+
externalHelpers?: boolean;
1514
footer?: BannerAndFooter;
15+
format?: Format;
16+
id?: string;
17+
outBase?: string;
18+
redirect?: Redirect;
1619
shims?: Shims;
17-
dts?: Dts;
20+
syntax?: Syntax;
1821
umdName?: Rspack.LibraryName;
1922
}
2023

website/docs/en/config/rsbuild/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2+
"index",
23
{
34
"type": "file",
45
"name": "log-level",
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
import { RsbuildDocBadge } from '@components/RsbuildDocBadge';
22

3-
# Rsbuild configurations
3+
# Overview
44

55
Rslib inherits its configuration from Rsbuild, so you can also configure the <RsbuildDocBadge path="/config" text="config" /> options from Rsbuild. This chapter introduces some common configuration items and explains how to use them in Rslib.
66

7-
:::tip
8-
To learn more about Rslib configurations, check out [Configure Rslib](/guide/basic/configure-rslib).
9-
:::
10-
11-
## Overview
12-
137
- [logLevel](/config/rsbuild/log-level): Specify the log level.
148
- [resolve](/config/rsbuild/resolve): Options for module resolution.
159
- [source](/config/rsbuild/source): Options for input source code.
1610
- [output](/config/rsbuild/output): Options for build outputs.
1711
- [tools](/config/rsbuild/tools): Options for low-level tools.
1812
- [performance](/config/rsbuild/performance): Options for performance.
1913
- [plugins](/config/rsbuild/plugins): Configure Rsbuild plugins.
14+
15+
:::tip
16+
To learn more about Rslib configurations, check out [Configure Rslib](/guide/basic/configure-rslib).
17+
:::

website/docs/en/guide/_meta.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
[
22
{
3-
"type": "dir",
3+
"type": "dir-section-header",
44
"name": "start",
5-
"label": "Getting Started"
5+
"label": "Start"
66
},
77
{
8-
"type": "dir",
8+
"type": "dir-section-header",
99
"name": "solution",
1010
"label": "Solution"
1111
},
1212
{
13-
"type": "dir",
13+
"type": "dir-section-header",
1414
"name": "basic",
1515
"label": "Basic"
1616
},
1717
{
18-
"type": "dir",
18+
"type": "dir-section-header",
1919
"name": "advanced",
2020
"label": "Advanced"
2121
},
2222
{
23-
"type": "dir",
23+
"type": "dir-section-header",
2424
"name": "migration",
2525
"label": "Migration"
2626
},
2727
{
28-
"type": "dir",
28+
"type": "dir-section-header",
2929
"name": "faq",
3030
"label": "FAQ"
3131
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["nodejs", "react", "vue"]
1+
["index", "nodejs", "react", "vue"]

0 commit comments

Comments
 (0)