Skip to content

docs: standards index and stale rules - #2903

Open
TC-MO wants to merge 16 commits into
masterfrom
docs/standards-index-and-stale-rules
Open

docs: standards index and stale rules#2903
TC-MO wants to merge 16 commits into
masterfrom
docs/standards-index-and-stale-rules

Conversation

@TC-MO

@TC-MO TC-MO commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Six files in standards/ merged into style-guide.md and page-structure.md with a README index, and AGENTS.md, CONTRIBUTING.md and review-docs now point there instead of restating rules Vale enforces.

An A/B eval of review-docs against master confirmed no loss of coverage.

TC-MO added 7 commits August 21, 2026 11:06
Merge six topic files into style-guide.md and page-structure.md, add a
README index, and drop the rule digests from AGENTS.md now that Vale
enforces them.
Three of the four subagents were re-deriving linter output. Two remain,
for judgment no rule expresses.
accepts.txt doesn't exist, and the PR check only gates errors.
Markdownlint already covers both, via MD045 and MD040.
The default level hid sentence case. Promote Microsoft.Headings to
warning; the CI error count is unchanged.
Both were unowned, so reporting them was luck.
@TC-MO TC-MO self-assigned this Aug 21, 2026
@TC-MO TC-MO added the documentation Improvements or additions to documentation. label Aug 21, 2026
@TC-MO TC-MO added adhoc Ad-hoc unplanned task added during the sprint. t-docs Issues owned by technical writing team. labels Aug 21, 2026
@apify-service-account

apify-service-account commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

✅ Preview for this PR (commit 9340c782) is ready at https://pr-2903.preview.docs.apify.com (see action run).

Marcel flagged that the skill rework dropped terminology checking. He was
right, though not for the reason given: scope: [summary, heading] doesn't
restrict these rules, and both fire in body prose.

Probing one violation per rule in the terminology section shows Vale covers
only the product-name cluster. Feature and concept terms, generic technical
terms, crawler/scraper casing, legacy vs alternative vs deprecated, version
numbers in prose, and the products that require "the" all had no owner after
subagent 3 was removed. ApifyProductNames catches only the direction where
an article must be removed.

Subagent 1 now owns that remainder, listed explicitly in process.md.
TC-MO added 3 commits August 27, 2026 10:11
Subagent 1 keeps only legacy vs deprecated and acronym first use. The other
27 rules move to apify/vale-rules#3. Blocked on that issue: they are
unenforced until it ships.
Drops the dead-rule notes, the vale-rules#3 section, and the design
rationale. process.md 878 to 564 words, SKILL.md 411 to 341.
Rule names break silently on rename, as in #2870, and Vale prints them at
runtime. Also aligns "the page being reviewed" across both files.
Spawn subagents only for what no tool can check. Each reads the page being reviewed plus one standards file, and returns findings with line numbers and suggested fixes.

Why subagents: each standards file gets dedicated attention. A single-pass review with a summary tends to miss edge cases (comma rules, article usage, brand spelling) that a focused read catches.
- Subagent 1, `standards/style-guide.md`: bold used for anything other than a UI element or critical warning, link text that isn't genuinely descriptive, parallel structure in lists, Oxford commas, legacy vs alternative vs deprecated used precisely, and acronyms expanded on first use

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be tired, but the first examples seem to be mistakes to flag, but then it seems to switch, because we do use an Oxford comma and the acronyms should be explained on first use.

Comment thread standards/page-structure.md Outdated

## Front matter

Every documentation file needs YAML front matter:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a super nit, but in tech frontmatter tends to be one word?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've actually seen both used interchangably sometimes even within one publication :D but don't see an issue and we can swap to frontmatter

Comment thread standards/page-structure.md Outdated

## Admonitions

Use Docusaurus admonitions for important information. All admonitions must have titles.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add a note that the number of admonitions should be limited, and that they shouldn't replace the regular prose. Our docs use them way too often for things that really don't need to be emphasised this much.

Both spellings were in use, with AGENTS.md already on the one-word form
in five places. Settles on it repo-wide, matching the existing
check-frontmatter.sh script name.
Adds a density ceiling of one per H2 section and a rule that admonitions
carry asides rather than content the prose needs, with a checklist item
and a reviewer note to match. Per review feedback that the docs box far
more than warrants the emphasis.
The style-guide bullet mixed violations to flag with compliant states,
so "Oxford commas" and "acronyms expanded on first use" read as things
to report. Every item now names the violation. Drops the acronym check,
which Microsoft.Acronyms already reports, and extends the page-structure
subagent to admonition density.
Resolves two conflicts in standards/:

- writing-style.md: deleted here, modified on master by #2904. Keeps the
  deletion. The no-stacked-headings rule that #2904 added to it is ported
  to page-structure.md in the next commit.
- quality-standards.md: keeps both sides, the "frontmatter" wording from
  this branch and the no-stacked-headings checklist item from #2904.
Preserves the rule #2904 added to the deleted writing-style.md, now
under a Hierarchy / No stacked headings split in page-structure.md.
Neither Vale nor markdownlint reports stacked headings, verified, so it
also joins the reviewer-only list and the review-docs page-structure
subagent.
@TC-MO
TC-MO requested a review from szaganek September 4, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. documentation Improvements or additions to documentation. t-docs Issues owned by technical writing team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants