English | 中文
This repo contains the source code of Kosmos website and all of the docs for Kosmos. It's built by Docusaurus, a modern static website generator.
Welcome to join us and you are more than appreciated to contribute!
When you add or modify the docs, these two files(docs/
and i18n/zh-Hans/docusaurus-plugin-content-docs/current
) should be taken into consideration.
If you have the Node.js environment, you can run the website locally.
- It is recommended to use version node v18.0.0+ and npm v8.6+
- You can download Node.js
# Clone the repo, or your own fork
git clone https://github.com/<YOUR_GITHUB_USERNAME>/website.git
# build
yarn
# Start the site
yarn start
Once the site is running locally, you can preview the site by visiting http://localhost:3111/website/.
The default documentation language for the project is English.
- English documentation submission path:
./docs
- Chinese documentation submission path:
./i18n/zh-Hans/docusaurus-plugin-content-docs/current
Note: The directory structures for both Chinese and English documentation must be completely identical.
After all changes checked well, please creating a pull request with DCO.