This website is built using Docusaurus, a modern static website generator.
node -v). You can use nvm for managing multiple Node versions on a single machine installed.pnpm install
Preview the English website locally:
pnpm start
Preview the Chinese website locally:
pnpm start --locale zh-cn
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Update the member information in src/pages/team/data/member.json File.
pnpm github-avatar
This command will fetch the base64 string of the GitHub avatar from file src/pages/team/data/member.json, and store the result in the src/pages/team/data/ directory. The operation might take a little while.
To write Chinese translation files, run:
pnpm write-translations --locale zh-cn
To write English translation files, run:
pnpm write-translations --locale en
pnpm build
This 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