Skip to content

Latest commit

Β 

History

History
61 lines (39 loc) Β· 1.76 KB

README.md

File metadata and controls

61 lines (39 loc) Β· 1.76 KB

Rspack documentation

πŸ“„ Documentation for Rspack.

Translation

Currently Rspack 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.

root
└─ docs
   β”œβ”€ en     # English Document
   └─ zh     # Chinese Document

Contributing

This website is built with Rspress, the document content can be written using markdown or mdx syntax. You can refer to the Rspress Website for detailed usage.

The source code of Rspress can be found in this folder.

If you have any problems using the Rspress, please create a new issue at Rspress Issues.

Writing style guide

  • Capitalization style: page titles and section headings should use sentence-style capitalization (only capitalize the first word and proper nouns) rather than title-style capitalization:
    • Correct: "A new method for creating JavaScript rollovers"
    • Incorrect: "A New Method for Creating JavaScript Rollovers"

Image assets

For images you use in the document, it's better to upload them to the rspack-contrib/rstack-design-resources repository, so the size of the current repository doesn't get too big.

After you upload the images there, they will be automatically deployed under the https://assets.rspack.dev/.

Install dependencies

Enable pnpm with corepack:

corepack enable

Install dependencies:

pnpm install

Local development

pnpm install
pnpm run dev

Production build

pnpm run build