Skip to content

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

  1. Create. Add a new .md file under that section's folder in docs/. Nested subfolders work too.
  2. Test locally. Run just dev to spin up a local docs server at http://localhost:8000 (supports hot reloading).
  3. Open a PR. Navigation is generated from the docs/ directory tree, so nothing else needs to change.

Adding a brand new section

  1. Create docs/<project-name>/index.md. Give it an # <Title> heading and a short description of the project/team.
  2. Add more pages as needed, following the steps above.
  3. Test locally. Run just dev to spin up a local docs server at http://localhost:8000.
  4. Open a PR.

The /merge process

PRs that only touch docs/ don't need infra-team review, so you can merge them yourself.

  1. Eligibility check. On every PR, the determineDocsOnlyPR job (.github/workflows/ci.yaml) diffs it against the base branch. If every changed file lives under docs/, it comments on the PR and posts a PR Auto-Merge status check saying "Run /merge to merge." Otherwise the check is neutral and the PR needs a normal review.

    Warning

    /merge only 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.

  2. Run /merge. Any member of our org can comment /merge on 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!!