๐งโ๐ป 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โ
- Create a Markdown file under
docs/. - Add frontmatter with a clear
titleanddescription. - Start with the task the reader wants to complete.
- Use a copy-pasteable example and explain required values.
- Add the page to
sidebars.tswhen it belongs in the public navigation. - Run
yarn docs:verify,yarn typecheck,yarn build, andyarn 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.