Skip to main content

๐Ÿง‘โ€๐Ÿ’ป Run the website locally

This guide is for changes to kwatch.dev: documentation, landing-page copy, styles, and components. For changes to the Kubernetes monitor itself, use the kwatch repository contribution guide.

โœ… Install the toolsโ€‹

You need:

Check your versions:

git --version
node --version
yarn --version

๐Ÿ“ฅ Clone the siteโ€‹

git clone https://github.com/abahmed/kwatch.dev.git
cd kwatch.dev
yarn install

๐Ÿ‘€ Preview your changesโ€‹

yarn start

Open the local URL printed by Docusaurus, usually http://localhost:3000/. Documentation pages live in docs/; the homepage components live in src/.

๐Ÿงช Verify before opening a pull requestโ€‹

Run the type checker and production build:

yarn typecheck
yarn build

The build creates static files in build/. Do not commit that generated directory.

โœ๏ธ Add a documentation pageโ€‹

  1. Create a Markdown file under docs/.
  2. Add frontmatter with a clear title and description.
  3. Start with the task the reader wants to complete.
  4. Use a copy-pasteable example and explain required values.
  5. Add the page to sidebars.ts when it belongs in the public navigation.
  6. Run yarn typecheck and yarn build.

Use short sections, simple English, and emojis when they clarify the topic. Do not put real tokens, passwords, or webhook URLs in examples.