GithubHelp home page GithubHelp logo

hiiirad / website-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chaos-mesh/website

1.0 0.0 0.0 42.17 MB

Source for Chaos Mesh website

Home Page: https://chaos-mesh.org

JavaScript 82.03% CSS 17.77% Shell 0.19%

website-1's Introduction

Chaos Mesh Logo

Website

Built using Docusaurus 2, a modern static website generator.

Gitpod ready-to-code

How to develop

yarn # install deps
yarn 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:

yarn start --locale zh

Build

yarn 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

yarn 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 to the same folder and rename it to i18n/zh/docusaurus-plugin-content-docs/version-2.2.0.

  2. 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.

  3. 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 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.

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

Same as Chaos Mesh.

website-1's People

Contributors

g1eny0ung avatar wangxiangustc avatar cwen0 avatar milasuperstar avatar strrl avatar yangkeao avatar en-jin19 avatar fewdan avatar yiyiyimu avatar bellaxiang avatar iguoyr avatar hexilee avatar fingerleader avatar oreoxmt avatar zhouqiang-cl avatar anotherrachel avatar liuxiaozhen12 avatar colstuwjx avatar erekgit avatar anuragpaliwal80 avatar xlgao-zju avatar tsthght avatar radupopa2010 avatar dependabot[bot] avatar agilob avatar tomshawn avatar mingleiw avatar dcalvin avatar andrewmatilde avatar yikeke avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.