home/README.md
This website is built with Docusaurus.
pnpm install
## pnpm install --registry=https://registry.npmmirror.com
pnpm write-translations --locale zh-cn
pnpm write-translations --locale en
pnpm start
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.
Please refer to the All Contributors to auto add contributor.
pnpm all-contributors generate
Use generate to read the contributors list from .all-contributorsrc file and update the contributor tables specified by the files key.
pnpm github-avatar
This command will fetch the base64 string of the GitHub avatar from file src/pages/team/data/member.json and .all-contributorsrc, and store the result in the src/pages/team/data/ directory. The operation might take a little while.
pnpm build
This command generates static content into the build directory and can be served using any static contents hosting service.
GIT_USER=<Your GitHub username> USE_SSH=true pnpm run deploy
OR
USE_SSH=true pnpm run deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
GITHUB_HOST=gitee.com USE_SSH=true pnpm run deploy
pnpm docusaurus docs:version v1.5.x
|-- docs
|-- blog
|-- i18n
| `-- zh-CN // internationalized chinese
| |-- code.json
| |-- docusaurus-plugin-content-blog
| |-- docusaurus-plugin-content-docs
| `-- docusaurus-theme-classic
|-- resource // static resource file
|-- src
| |-- theme
| |-- css
| |-- js
| |-- pages
| | |-- components
| | |-- index.js
| |-- constants.js
|-- static // picture static resource
| |-- img //
| | |-- blog // blog picture
| | |-- docs // document picture
| | |-- home // product picture
| | |-- icons // icon
|-- docusaurus.config.js
|-- sidebars.js // document sidebar menu configuration