Skip to content

Commit ed6dd8d

Browse files
authored
docs: unify title capitalization style (#671)
1 parent 290040a commit ed6dd8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+115
-111
lines changed

CODE_OF_CONDUCT.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributor Covenant Code of Conduct
1+
# Contributor covenant code of conduct
22

3-
## Our Pledge
3+
## Our pledge
44

55
We as members, contributors, and leaders pledge to make participation in our
66
community a harassment-free experience for everyone, regardless of age, body
@@ -12,7 +12,7 @@ and orientation.
1212
We pledge to act and interact in ways that contribute to an open, welcoming,
1313
diverse, inclusive, and healthy community.
1414

15-
## Our Standards
15+
## Our standards
1616

1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
@@ -36,7 +36,7 @@ Examples of unacceptable behavior include:
3636
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

39-
## Enforcement Responsibilities
39+
## Enforcement responsibilities
4040

4141
Community leaders are responsible for clarifying and enforcing our standards of
4242
acceptable behavior and will take appropriate and fair corrective action in
@@ -65,7 +65,7 @@ All complaints will be reviewed and investigated promptly and fairly.
6565
All community leaders are obligated to respect the privacy and security of the
6666
reporter of any incident.
6767

68-
## Enforcement Guidelines
68+
## Enforcement guidelines
6969

7070
Community leaders will follow these Community Impact Guidelines in determining
7171
the consequences for any action they deem in violation of this Code of Conduct:
@@ -91,7 +91,7 @@ includes avoiding interactions in community spaces as well as external channels
9191
like social media. Violating these terms may lead to a temporary or
9292
permanent ban.
9393

94-
### 3. Temporary Ban
94+
### 3. Temporary ban
9595

9696
**Community Impact**: A serious violation of community standards, including
9797
sustained inappropriate behavior.
@@ -102,7 +102,7 @@ private interaction with the people involved, including unsolicited interaction
102102
with those enforcing the Code of Conduct, is allowed during this period.
103103
Violating these terms may lead to a permanent ban.
104104

105-
### 4. Permanent Ban
105+
### 4. Permanent ban
106106

107107
**Community Impact**: Demonstrating a pattern of violation of community
108108
standards, including sustained inappropriate behavior, harassment of an

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rslib Contributing Guide
1+
# Rslib contributing guide
22

33
Thanks for that you are interested in contributing to Rslib. Before starting your contribution, please take a moment to read the following guidelines.
44

@@ -14,7 +14,7 @@ fnm use
1414
nvm use
1515
```
1616

17-
## Install Dependencies
17+
## Install dependencies
1818

1919
Enable [pnpm](https://pnpm.io/) with corepack:
2020

@@ -34,19 +34,19 @@ What this will do:
3434
- Create symlinks between packages in the monorepo
3535
- Run the prepare script to build all packages, powered by [nx](https://nx.dev/).
3636

37-
## Making Changes and Building
37+
## Making changes and building
3838

3939
Once you have set up the local development environment in your forked repo, we can start development.
4040

41-
### Checkout A New Branch
41+
### Checkout a new branch
4242

4343
It is recommended to develop on a new branch, as it will make things easier later when you submit a pull request:
4444

4545
```sh
4646
git checkout -b MY_BRANCH_NAME
4747
```
4848

49-
### Build the Package
49+
### Build the package
5050

5151
Use [nx build](https://nx.dev/nx-api/nx/documents/run) to build the package you want to change:
5252

@@ -68,13 +68,13 @@ npx nx build @rslib/core --watch
6868

6969
## Testing
7070

71-
### Add New Tests
71+
### Add new tests
7272

7373
If you've fixed a bug or added code that should be tested, then add some tests.
7474

7575
You can add unit test cases in the `<PACKAGE_DIR>/tests` folder. The test runner is based on [Vitest](https://vitest.dev/).
7676

77-
### Run Unit Tests
77+
### Run unit tests
7878

7979
Before submitting a pull request, it's important to make sure that the changes haven't introduced any regressions or bugs. You can run the unit tests for the project by executing the following command:
8080

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Rslib has the following features:
3939
- **Declaration file generation**: Including isolated declarations.
4040
- **Advanced features**: Module Federation, asset compression, PostCSS, Lightning CSS, and more.
4141

42-
## 📚 Getting Started
42+
## 📚 Getting started
4343

4444
To get started with Rslib, see the [Quick Start](https://lib.rsbuild.dev/guide/start/quick-start).
4545

@@ -109,7 +109,7 @@ Please read the [Contributing Guide](https://github.com/web-infra-dev/rslib/blob
109109
</table>
110110
</a>
111111

112-
### Code of Conduct
112+
### Code of conduct
113113

114114
This repo has adopted the ByteDance Open Source Code of Conduct. Please check [Code of Conduct](./CODE_OF_CONDUCT.md) for more details.
115115

examples/module-federation/mf-remote/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A Module Federation remote module built with Rsbuild. It is consumed by [mf-reac
77

88
Extra remote module is **optional**, it is used to demonstrate a complex Module Federation set up here.
99

10-
## Get Started
10+
## Get started
1111

1212
Start the dev server:
1313

packages/create-rslib/template-common/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rslib Project
1+
# Rslib project
22

33
## Setup
44

@@ -8,7 +8,7 @@ Install the dependencies:
88
pnpm install
99
```
1010

11-
## Get Started
11+
## Get started
1212

1313
Build the library:
1414

website/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
# Rslib Website
1+
# Rslib website
22

33
This website is built with [Rspress](https://github.com/web-infra-dev/rspress), the document content can be written using markdown or mdx syntax. You can refer to the [Rspress Website](https://rspress.dev/) for detailed usage.
44

55
## Contributing
66

77
Currently Rslib provides documentation in English and Chinese. If you can use Chinese, please update both documents at the same time. Otherwise, just update the English documentation.
88

9-
### Image Assets
9+
## Writing style guide
10+
11+
The same as Rspack: [Writing style guide](https://github.com/web-infra-dev/rspack/tree/main/website#writing-style-guide).
12+
13+
### Image assets
1014

1115
For images you use in the document, it's better to upload them to the [rspack-contrib/rstack-design-resources](https://github.com/rspack-contrib/rstack-design-resources) repository, so the size of the current repository doesn't get too big.
1216

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Rslib Core
1+
# Rslib core
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Rslib Types
1+
# Rslib types

website/docs/en/config/lib/auto-extension.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Whether to automatically set the file extension based on the [`format`](/config/lib/format) option in the JavaScript output files.
77

8-
## Default Extension
8+
## Default extension
99

1010
By default that when `autoExtension` is set to `true`, the file extension will be:
1111

@@ -15,7 +15,7 @@ By default that when `autoExtension` is set to `true`, the file extension will b
1515

1616
When `autoExtension` is set to `false`, the file extension will be default to `.js`.
1717

18-
## Customize Extension
18+
## Customize extension
1919

2020
You can set `autoExtension` to `false` and use [output.filename](https://rsbuild.dev/config/output/filename) to customize the JavaScript output files.
2121

website/docs/en/config/lib/auto-external.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type AutoExternal =
2929

3030
Whether to automatically externalize dependencies of different dependency types and do not bundle them.
3131

32-
## Object Type
32+
## Object type
3333

3434
### autoExternal.dependencies
3535

@@ -59,7 +59,7 @@ Whether to automatically externalize dependencies of type `peerDependencies`.
5959

6060
Whether to automatically externalize dependencies of type `devDependencies`.
6161

62-
## Default Value
62+
## Default value
6363

6464
The default value of `autoExternal` is `true`, which means the following dependency types will **not be bundled**:
6565

@@ -91,7 +91,7 @@ export default {
9191

9292
## Example
9393

94-
### Customize Externalized Dependency Types
94+
### Customize externalized dependency types
9595

9696
To disable the processing of a specific type of dependency, you can configure `autoExternal` as an object like this:
9797

@@ -109,7 +109,7 @@ export default {
109109
};
110110
```
111111

112-
### Disable Default Behavior
112+
### Disable default behavior
113113

114114
If you want to disable the default behavior, you can set `autoExternal` to `false`:
115115

0 commit comments

Comments
 (0)