How to add documentation¶
Note
Pages are plain Markdown, rendered with MkDocs
+ Material for MkDocs.
See any existing page under docs/ for examples of the conventions used.
Where to find the source¶
Clone Patina-Network/docs locally.
Adding a page to an existing section¶
- Create. Add a new
.mdfile under that section's folder indocs/. Nested subfolders work too. - Test locally. Run
just devto spin up a local docs server athttp://localhost:8000(supports hot reloading). - Open a PR. Navigation is generated from the
docs/directory tree, so nothing else needs to change.
Adding a brand new section¶
- Create
docs/<project-name>/index.md. Give it an# <Title>heading and a short description of the project/team. - Add more pages as needed, following the steps above.
- Test locally. Run
just devto spin up a local docs server athttp://localhost:8000. - Open a PR.
The /merge process¶
PRs that only touch docs/ don't need infra-team review, so you can merge
them yourself.
-
Eligibility check. On every PR, the
determineDocsOnlyPRjob (.github/workflows/ci.yaml) diffs it against the base branch. If every changed file lives underdocs/, it comments on the PR and posts aPR Auto-Mergestatus check saying "Run /merge to merge." Otherwise the check is neutral and the PR needs a normal review.Warning
/mergeonly works once this check shows success. Comment it too early, while CI is still running or the check hasn't appeared yet, and nothing happens. -
Run
/merge. Any member of our org can comment/mergeon an eligible PR. It re-checks eligibility and your membership, then merges the PR for you.
That's it. Anyone on the team can ship docs changes without waiting on infra review. Happy doc writing!!