๐งโ๐ป 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โ
- 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 typecheckandyarn build.
Use short sections, simple English, and emojis when they clarify the topic. Do not put real tokens, passwords, or webhook URLs in examples.