๐ GitHub workflow
If GitHub is new to you, read GitHub's Hello World guide first. The flow below is the same for documentation and code changes.
1. ๐ด Fork and cloneโ
Click Fork on the repository, then clone your fork:
git clone https://github.com/YOUR-USERNAME/kwatch.dev.git
cd kwatch.dev
git remote add upstream https://github.com/abahmed/kwatch.dev.git
Here, origin is your fork and upstream is the main project.
2. ๐ฟ Create a branchโ
git fetch upstream
git switch -c improve-alert-docs upstream/main
Choose a short branch name that describes the change.
3. โ๏ธ Make and check your changesโ
Edit the docs or site, then run:
yarn typecheck
yarn build
yarn docs:verify
yarn seo:verify
Read the page once as a new user. Check that commands are complete, examples
use fake credentials, and links work. If the change affects generated
configuration, providers, or feature references, confirm that yarn docs:verify
was run against the matching Kwatch checkout.
4. ๐ค Push and open a pull requestโ
git add docs/ src/ sidebars.ts
git commit -m "docs: clarify alert setup"
git push -u origin improve-alert-docs
Open a pull request from your branch to abahmed/kwatch.dev:main. Explain:
- what changed;
- who the change helps; and
- how you checked it.
5. ๐ Keep the branch currentโ
If main changes while your pull request is open:
git fetch upstream
git rebase upstream/main
git push --force-with-lease
Only use --force-with-lease on your own feature branch. Never force-push main.
๐ฌ Need help?โ
Ask in Discord or comment on the issue before starting a large change. Small improvements are welcome too. ๐