Source for Chaos Mesh website.
Go to file
Aolin 08b51f2b57
docs: fix typos (#415)
Signed-off-by: Aolin <aolin.zhang@pingcap.com>
Co-authored-by: Yue Yang <g1enyy0ung@gmail.com>
2024-09-11 16:31:40 +08:00
.github chore!: upgrade pnpm and docusaurus 2024-06-09 13:12:30 +08:00
.husky chore: upgrade deps 2024-01-28 06:10:47 +08:00
blog chore: upgrade docusaurus to v3.5 2024-09-11 16:10:53 +08:00
docs docs: fix typos (#415) 2024-09-11 16:31:40 +08:00
docusaurus-tailwind-v3 Introduce our newly revamped website homepage (#401) 2023-10-08 21:17:28 +08:00
i18n/zh docs: fix typos (#415) 2024-09-11 16:31:40 +08:00
patches chore!: upgrade pnpm and docusaurus 2024-06-09 13:12:30 +08:00
src chore: upgrade docusaurus to v3.5 2024-09-11 16:10:53 +08:00
static Update sj.png 2023-11-06 14:13:59 +08:00
versioned_docs docs: fix typos (#415) 2024-09-11 16:31:40 +08:00
versioned_sidebars feat: release docs for 2.6.4 (#416) 2024-09-11 11:46:02 +08:00
.editorconfig refactor: website (#740) 2020-07-27 15:08:03 +08:00
.gitignore Introduce our newly revamped website homepage (#401) 2023-10-08 21:17:28 +08:00
.gitpod.yml feat!: migrate package manager to pnpm 2023-03-31 22:43:27 +08:00
.npmrc chore: upgrade docusaurus to v3.5 2024-09-11 16:10:53 +08:00
.nvmrc fix(ci): upgrade node version to lts 2021-12-10 11:23:23 +08:00
.prettierrc chore: upgrade deps 2024-01-11 11:37:09 +08:00
README.md Update README.md 2023-11-09 11:49:56 +08:00
babel.config.js chore: format docs 2023-06-16 15:58:59 +08:00
docusaurus.config.js chore: upgrade GA 2024-04-05 23:15:33 +08:00
logo-white.svg chore: update 2022-09-25 17:56:26 +08:00
logo.svg chore: update logo 2022-03-25 11:44:27 +08:00
mlc_config.json fix: links 2023-10-09 11:16:20 +08:00
package.json chore: upgrade docusaurus to v3.5 2024-09-11 16:10:53 +08:00
pnpm-lock.yaml chore: upgrade docusaurus to v3.5 2024-09-11 16:10:53 +08:00
sidebars.js docs: Expose Chaos Dashbaord with Ingress 2023-08-23 14:00:02 +08:00
tailwind.config.js feat: upgrade daisyui to v4 (#413) 2024-02-19 14:42:07 +08:00
versions.json feat: release docs for 2.6.4 (#416) 2024-09-11 11:46:02 +08:00

README.md

Chaos Mesh Logo Chaos Mesh Logo

Website

Built using Docusaurus 3, a modern static website generator.

Contribute with Gitpod

How to develop

pnpm i # install deps
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.

By default, the start command will only preview documents in English. If you want to preview documents in other languages, such as Chinese, then add --locale after the command:

pnpm start --locale zh

Build

pnpm build

This command generates static content into the build directory and can be served using any static contents hosting service.

Release a new version

Major or minor

pnpm docusaurus docs:version x.x.x

The versions of the all docs split into two parts, one is the latest (in docs/) and the others are versioned (in versioned_docs/). When a version has been released, the current latest docs/ will be copied into versioned_docs/ (by running the command above).

i18n

All translated docs won't be copied automatically. You have to handle them manually. For example, release 2.2.0:

  1. Copy i18n/zh/docusaurus-plugin-content-docs/current.json to the same folder and rename it to i18n/zh/docusaurus-plugin-content-docs/version-2.2.0.json.

  2. The replace Next and current in version-2.2.0.json, e.g.:

    "version.label": {
      "message": "Next",
      "description": "The label for version current"
    }
    

    to:

     "version.label": {
       "message": "2.2.0",
       "description": "The label for version 2.2.0"
     }
    

Don't forget test the new version build after you've done the above steps!

Patch

For patch versions, it's only needed to move some folders and change some text. For example, v2.1.3 to v2.1.4:

  1. Replace 2.1.3 in versions.json with 2.1.4.
  2. versioned_docs/version-2.1.3 to versioned_docs/version-2.1.4.
  3. versioned_sidebars/version-2.1.3-sidebars.json to versioned_sidebars/version-2.1.4-sidebars.json and replace 2.1.3 with 2.1.4 (if have) in json.
  4. i18n/zh/docusaurus-plugin-content-docs/version-2.1.3 to i18n/zh/docusaurus-plugin-content-docs/version-2.1.4.
  5. i18n/zh/docusaurus-plugin-content-docs/version-2.1.3.json to i18n/zh/docusaurus-plugin-content-docs/version-2.1.4.json and replace 2.1.3 with 2.1.4 in json.
  6. Update src/data/versions.js.

Don't forget test the new version build after you've done the above steps!

How to contribute

Mostly you only need to modify the content in the docs/, but if you want some versions to take effect as the latest, please also update the same files in the versioned_docs/ dir.

License

Distributed under CC-BY-4.0.