This website is built using Docusaurus, a modern static website generator.
- Node.js version 24.0 or above (which can be checked by running
node -v). You can use nvm for managing multiple Node versions on a single machine installed. - When installing Node.js, you are recommended to check all checkboxes related to dependencies.
pnpm installPreview the English website locally:
pnpm startPreview the Chinese website locally:
pnpm start --locale zh-cnThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
To write Chinese translation files, run:
pnpm write-translations --locale zh-cnTo write English translation files, run:
pnpm write-translations --locale enpnpm buildThis command generates static content into the build directory and can be served using any static contents hosting
service.
|-- community # community directory
|-- docs # document directory
|-- i18n
| `-- zh-cn # internationalized chinese
| |-- code.json
| |-- docusaurus-plugin-content-docs
| |-- docusaurus-plugin-content-community
| `-- docusaurus-theme-classic
|-- src
|-- static
| |-- img # picture static resource
| | |-- blog # blog picture
| | |-- docs # document picture
| | |-- index # homepage picture
|-- docusaurus.config.js
|-- sidebars.js # document sidebar menu configuration
|-- sidebarsCommunity.js # community document sidebar menu configuration