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 reference, type, production-build, and SEO checks:

yarn docs:verify
yarn typecheck
yarn build
yarn seo:verify

The build creates static files in build/. Do not commit that generated directory. yarn docs:verify reads the catalogs from a sibling checkout of the Kwatch code repository and refreshes generated reference pages; set KWATCH_SOURCE when that checkout is elsewhere.

โœ๏ธ 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 docs:verify, yarn typecheck, yarn build, and yarn seo:verify.

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