Source code of https://docs.coscene.cn/. Generated with docusaurus.
- Install dependencies.
pnpm install
- Run dev server.
pnpm start
pnpm build && pnpm serve
Push the changes to the master
branch.
See the (action file)[.github/workflows/deploy-to-oss.yml] for details.
If you have anything, you can open an issue or reach out to contact@coscene.io
TL;DR Write the original document in the /docs
folder, copy it to i18n/en/docusaurus-plugin-content-docs/current
and do the proper translation.
Other pages, templates, and components, please refer to docusaurus's i18n guide
The docusaurus-plugin-content-docs plugin always divides its content by versions. The data in ./docs folder will be translated in the current subfolder and current.json file.
See contribute guide
There's a bug that prevents the translation of the nav button from showing up correctly when transitioning between chapters/categories. The official team is still working on this issue: