-
-
Notifications
You must be signed in to change notification settings - Fork 56
docs: refactor section headers #1342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| title: Overview | ||
| sidebar: false | ||
| pageType: doc-wide | ||
| --- | ||
|
|
||
| # Rslib blogs | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| date: 2025-05-14 10:00:00 | ||
| sidebar: false | ||
| pageType: doc-wide | ||
| --- | ||
|
|
||
| _May 14, 2025_ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| [ | ||
| { | ||
| "type": "file", | ||
| "name": "index", | ||
| "label": "Config Overview" | ||
| "type": "section-header", | ||
| "label": "Overview" | ||
| }, | ||
| "index", | ||
| { | ||
| "type": "dir", | ||
| "type": "dir-section-header", | ||
| "name": "lib", | ||
| "label": "Lib Configurations" | ||
| "label": "Lib configurations" | ||
| }, | ||
| { | ||
| "type": "dir", | ||
| "type": "dir-section-header", | ||
| "name": "rsbuild", | ||
| "label": "Rsbuild Configurations" | ||
| "label": "Rsbuild configurations" | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,12 @@ | ||
| --- | ||
| overview: true | ||
| title: Config Overview | ||
| pageType: doc-wide | ||
| outline: false | ||
| --- | ||
|
|
||
| # Config overview | ||
|
|
||
| This page lists all the configurations for Rslib. See [Configure Rslib](/guide/basic/configure-rslib) for detail. | ||
|
|
||
| import Overview from '@components/Overview'; | ||
|
|
||
| <Overview /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,18 @@ | ||
| [ | ||
| "format", | ||
| "bundle", | ||
| "index", | ||
| "auto-extension", | ||
| "auto-external", | ||
| "redirect", | ||
| "syntax", | ||
| "external-helpers", | ||
| "banner", | ||
| "footer", | ||
| "bundle", | ||
| "dts", | ||
| "shims", | ||
| "experiments", | ||
| "external-helpers", | ||
| "footer", | ||
| "format", | ||
| "id", | ||
| "umd-name", | ||
| "out-base", | ||
| "experiments" | ||
| "redirect", | ||
| "shims", | ||
| "syntax", | ||
| "umd-name" | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| [ | ||
| "index", | ||
| { | ||
| "type": "file", | ||
| "name": "log-level", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,17 @@ | ||
| import { RsbuildDocBadge } from '@components/RsbuildDocBadge'; | ||
|
|
||
| # Rsbuild configurations | ||
| # Overview | ||
|
|
||
| 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. | ||
|
|
||
| :::tip | ||
| To learn more about Rslib configurations, check out [Configure Rslib](/guide/basic/configure-rslib). | ||
| ::: | ||
|
|
||
| ## Overview | ||
|
|
||
| - [logLevel](/config/rsbuild/log-level): Specify the log level. | ||
| - [resolve](/config/rsbuild/resolve): Options for module resolution. | ||
| - [source](/config/rsbuild/source): Options for input source code. | ||
| - [output](/config/rsbuild/output): Options for build outputs. | ||
| - [tools](/config/rsbuild/tools): Options for low-level tools. | ||
| - [performance](/config/rsbuild/performance): Options for performance. | ||
| - [plugins](/config/rsbuild/plugins): Configure Rsbuild plugins. | ||
|
|
||
| :::tip | ||
| To learn more about Rslib configurations, check out [Configure Rslib](/guide/basic/configure-rslib). | ||
| ::: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| ["nodejs", "react", "vue"] | ||
| ["index", "nodejs", "react", "vue"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| title: 总览 | ||
| sidebar: false | ||
| pageType: doc-wide | ||
| --- | ||
|
|
||
| # Rslib 博客 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| date: 2025-05-14 10:00:00 | ||
| sidebar: false | ||
| pageType: doc-wide | ||
| --- | ||
|
|
||
| _2025 年 5 月 14 日_ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,12 @@ | ||
| --- | ||
| overview: true | ||
| title: 配置总览 | ||
| pageType: doc-wide | ||
| outline: false | ||
| --- | ||
|
|
||
| # 配置总览 | ||
|
|
||
| 本页面列出了 Rslib 的所有配置项。详细配置请查阅 [配置 Rslib](/guide/basic/configure-rslib)。 | ||
|
|
||
| import Overview from '@components/Overview'; | ||
|
|
||
| <Overview /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,18 @@ | ||
| [ | ||
| "format", | ||
| "bundle", | ||
| "index", | ||
| "auto-extension", | ||
| "auto-external", | ||
| "redirect", | ||
| "syntax", | ||
| "external-helpers", | ||
| "banner", | ||
| "footer", | ||
| "bundle", | ||
| "dts", | ||
| "shims", | ||
| "experiments", | ||
| "external-helpers", | ||
| "footer", | ||
| "format", | ||
| "id", | ||
| "umd-name", | ||
| "out-base", | ||
| "experiments" | ||
| "redirect", | ||
| "shims", | ||
| "syntax", | ||
| "umd-name" | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| [ | ||
| "index", | ||
| { | ||
| "type": "file", | ||
| "name": "log-level", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,17 @@ | ||
| import { RsbuildDocBadge } from '@components/RsbuildDocBadge'; | ||
|
|
||
| # Rsbuild 配置 | ||
| # 总览 | ||
|
|
||
| Rslib 继承了 Rsbuild 的配置,所以你也可以配置 <RsbuildDocBadge path="/config" text="config" /> 选项。本章节介绍了一些常见的配置项,并解释了如何在 Rslib 中使用它们。 | ||
|
|
||
| :::tip | ||
| 要了解更多关于 Rslib 的配置,请查看 [Configure Rslib](/guide/basic/configure-rslib)。 | ||
| ::: | ||
|
|
||
| ## 概览 | ||
|
|
||
| - [logLevel](/config/rsbuild/log-level): 指定日志级别。 | ||
| - [resolve](/config/rsbuild/resolve): 与模块解析相关的选项。 | ||
| - [source](/config/rsbuild/source): 与输入的源代码相关的选项。 | ||
| - [output](/config/rsbuild/output): 与构建产物相关的选项。 | ||
| - [tools](/config/rsbuild/tools): 与底层工具相关的选项。 | ||
| - [performance](/config/rsbuild/performance): 与性能相关的选项。 | ||
| - [plugins](/config/rsbuild/plugins): 配置 Rsbuild 插件。 | ||
|
|
||
| :::tip | ||
| 要了解更多关于 Rslib 的配置,请查看 [Configure Rslib](/guide/basic/configure-rslib)。 | ||
| ::: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| ["nodejs", "react", "vue"] | ||
| ["index", "nodejs", "react", "vue"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # 解决方案 | ||
| # 总览 | ||
|
|
||
| 在本章中,将介绍如何使用 Rslib 开发浏览器和 Node.js 的库。我们还将介绍如何为不同的 UI 框架创建库。 | ||
|
|
||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.