How to contribute docs
Starting from version 1.3, the community documentation will be available on the Karmada website.
This document explains how to contribute docs to
the karmada-io/website repository.
Prerequisitesโ
- Docs, like codes, are also categorized and stored by version. 1.3 is the first version we have archived.
- Docs need to be translated into multiple languages for readers from different regions. The community now supports both Chinese and English. English is the official language of documentation.
- For our docs we use markdown. If you are unfamiliar with Markdown, please see https://guides.github.com/features/mastering-markdown/ or https://www.markdownguide.org/ if you are looking for something more substantial.
- We get some additions through Docusaurus 2, a model static website generator.
Setupโ
You can set up your local environment by cloning our website repository.
git clone https://github.com/karmada-io/website.git
cd website
Our website is organized like below:
website
โโโ sidebars.json        # sidebar for the current docs version
โโโ docs                 # docs directory for the current docs version
โ   โโโ foo
โ   โ   โโโ bar.md       # https://mysite.com/docs/next/foo/bar
โ   โโโ hello.md         # https://mysite.com/docs/next/hello
โโโ versions.json        # file to indicate what versions are available
โโโ versioned_docs
โ   โโโ version-1.1.0
โ   โ   โโโ foo
โ   โ   โ   โโโ bar.md   # https://mysite.com/docs/foo/bar
โ   โ   โโโ hello.md
โ   โโโ version-1.0.0
โ       โโโ foo
โ       โ   โโโ bar.md   # https://mysite.com/docs/1.0.0/foo/bar
โ       โโโ hello.md
โโโ versioned_sidebars
โ   โโโ version-1.1.0-sidebars.json
โ   โโโ version-1.0.0-sidebars.json