Documentation update process
This is the working process for the pages under /docs on this site. The source is the public repository kopyk/portfolio.
Roles
This site has one writer, so one person holds more than one role. The roles stay separate so that each check has a name.
| Role | Who | Responsible for |
|---|---|---|
| Document owner | Jordan Yan | Decides what each page says. Approves every change. |
| Author | Whoever opens the pull request | Makes the change, classifies it, and completes the checklist. |
| Source checker | The document owner | Re-reads the cited primary source for any change to a regulated statement. |
| Automated checks | GitHub Actions | Build, internal links, external links, prose style, reading level, code tests. |
Classify the change
Every change belongs to one class. If a change fits two, use the higher one.
| Class | What it covers | Extra checks beyond the standard ones |
|---|---|---|
| Minor | Spelling, formatting, a broken link. No change in meaning. | None |
| Standard | New or changed content that is not a regulated statement. | Read the rendered page from start to end |
| Regulated | Any statement of what a law or rule requires. Any instruction in the family safety guides. | Source check. Update the "checked on" date. For guardian pages, the reading-level check must pass. |
| Urgent | A live safety instruction or legal statement is wrong or out of date. | Follows the fast track |
Standard workflow
- Open a branch. Name it for the change, for example
fix/coppa-penalty-figure. - Make the change. Follow the writing-for-translation guide.
- Add a change log entry to
CHANGELOG.md. State the class, the pages changed and the reason. - Open a pull request. State the class in the description.
- Wait for the automated checks. Fix anything that fails. Do not turn a check off to get a pass.
- For a Regulated change, do the source check. Open the cited section of the law or rule. Confirm that the changed sentence still matches it. Update the "checked on" date on the page.
- Approve and merge. The owner reads the rendered page, then merges.
- Confirm the live page. After the deploy finishes, open the page on the live site and check the change.
What the automated checks cover
| Check | Tool | Fails when |
|---|---|---|
| Build | Docusaurus | The site does not build, or an internal link or anchor is broken |
| External links | lychee | A link to another site does not resolve |
| Prose style | Vale, with the rules in styles/Portfolio | A page breaks a style rule at error level |
| Reading level | scripts/reading-level.mjs | A family safety page scores above grade 8 |
| Tutorial code | Luau | A test for the creator tutorial's module fails |
Versioning and the change log
- Git is the version history. Every published state of every page is a commit on
main. - The change log is the readable history. It lists changes by date, newest first, with the class of each.
- Sample documents that carry their own version number (the policy and the procedure) also keep a revision table on the page, because their readers would not look in a repository.
- Each page shows when it was last updated. The date comes from Git.
Fast track for urgent changes
Use the fast track when a live page gives a safety instruction or a legal statement that is wrong, and a reader could act on it.
- Act within 1 business day of finding the problem.
- Fix or remove. If you know the correct wording and can cite its source, fix the statement. If not, remove it and add a notice that the section is under review.
- Run the build and link checks. These are never skipped. Style and reading-level findings may wait for the full review.
- Merge and confirm the live page.
- Log it. Mark the change log entry Urgent and say what was wrong.
- Complete the full review within 5 business days. Do every step of the standard workflow that the fast track skipped. Record the result in the change log.
Scheduled reviews
| Pages | When | What to check |
|---|---|---|
| Regulation pages | Each January, and when a rule is amended | Penalty figures and other dollar amounts. The current rule text against each cited section. The status of any proposed rule the page mentions. |
| Policy and procedure set | Every 12 months | Each deadline against the regulation. |
| Family safety guides | Every 6 months | Steps still agree across the five pages. Reading level. |
| All pages | Every 6 months | External links. The "about this sample" note still matches the page. |