-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial First Documentation Change
You will make one small documentation change using the project's split documentation system (wiki + rustdoc + docs/ artifacts), run the required validation commands, and understand how to record the external wiki commit correctly for a pull request.
Observable outcome:
- a small documentation edit exists in the correct location for its intent
- wiki/docs validation commands complete successfully
- if the wiki was edited, you can identify the external wiki repository change and record its branch/SHA in review notes
- basic git and terminal usage
- recommended: complete Tutorial: Run the Prototype Locally
- recommended: complete Tutorial: Trace a Desktop Action End to End
- repository checkout available locally
- terminal opened at the repository root (
/Users/justinshort/os) - external wiki checkout available (or create it during this tutorial)
- Rust toolchain installed (for docs validation commands)
- a small documentation change to make (wording fix, link correction, example tweak, registry/index adjustment)
Open Home and choose the correct documentation surface for your change:
- wiki page under
wiki/for tutorials/how-to/explanations/reference indexes/navigation - Rust source comments for API behavior (
rustdoc) -
docs/adr/*ordocs/sop/*for formal decisions/procedures
If your change is about exact artifact inventory or canonical locations, confirm the target reference page under Reference.
cargo wiki statusIf the external checkout is missing locally and you are not already carrying wiki edits, create it with:
cargo wiki cloneThis ensures the wiki checkout is present and visible before you edit wiki pages.
Examples:
- fix wording or navigation in a wiki page under
wiki/ - improve or correct
rustdocitem comments in the affected crate - update a formal artifact in
docs/adr/*ordocs/sop/*
Keep the change small and intentional so you can focus on workflow discipline rather than content volume.
If your change adds or materially changes a formal artifact, update the corresponding wiki index page.
Examples:
- artifact inventory/navigation changes -> Reference: Documentation Artifact Registry
- ADR changes -> Reference: Architecture Decision Records
- SOP/runbook changes -> Reference: Operational Runbooks and SOPs
cargo xtask docs wiki
cargo xtask docs all
cargo doc --workspace --no-deps
cargo test --workspace --docIf your change did not touch rustdoc, the cargo doc and doctest steps are still useful practice in this tutorial because they demonstrate the full documentation workflow.
If you edited wiki content, inspect the external wiki repository and then the main repo:
git -C ../os.wiki status --short
git status --shortThis shows the wiki page edits in the external checkout and the separate main-repo state.
Confirm the tutorial is complete only when all items below are true:
- The documentation change is stored in the correct surface for its intent.
- Expected result: wiki navigation/routing content is in
wiki/; API semantics are inrustdoc; ADR/SOP content is indocs/.
- Expected result: wiki navigation/routing content is in
-
cargo xtask docs wikiexits with code0.- Expected result:
xtaskprintsOK.
- Expected result:
-
cargo xtask docs allexits with code0.- Expected result:
xtaskprintsOK.
- Expected result:
-
cargo doc --workspace --no-depscompletes successfully.- Expected result: docs build without fatal rustdoc errors.
-
cargo test --workspace --doccompletes successfully.- Expected result: doctests pass or report no failures.
- If wiki content changed,
git -C ../os.wiki status --shortshows the modified page(s).- Expected result: the changed wiki file is listed.
- Move to the task-oriented PR workflow: How to Update Documentation in a Pull Request
- Review the project-wide documentation maintenance rules: Contributing Standards (Code + Docs + Wiki)
- Understand the documentation system rationale: Explanation: Documentation Architecture and Governance
- Look up canonical artifact locations: Reference: Documentation Artifact Registry
- System Architecture Overview
- Browser Host Boundary and Storage Model
- Technology Choices and Tooling Ecosystem
- Performance Engineering Strategy
- Documentation Architecture and Governance