docs(contributing): record the documentation house rules (#719) - #977
Conversation
4cd8dc6 to
d9cad98
Compare
|
NEEDS CHANGES at The Everything else it checked came back exact, re-derived rather than taken from the Provenance held on all five flagged citations — the heading ruling at 14:57:42Z, the One rule it flagged as my author's extrapolation, which I am keeping as written: Build: 61 warnings both ways, sorted sets byte-identical, no duplicate-label or orphan |
d9cad98 to
87702d3
Compare
|
NEEDS CHANGES at It found the same defect a second time, in the Mermaid block, and worse. The page Round 1's Taken on its push-back about the measured-setting rule. One thing it did not raise, fixed anyway: four sentences used gendered pronouns for Verified after the fix: 12/11 from the page's own commands; 0 lines over 88; 9 headings, |
87702d3 to
949bab5
Compare
|
NEEDS CHANGES at 1. The Mermaid labelling rule was half false. "Node labels are quoted" sat two 2. The page claimed a safety net that does not cover it. "A number written onto one 3. A claim the reviewer could only flag as suspect, measured. The page said the
4. The third worked grep was latent, now not. It self-matched 0 times only because Verified after: all three greps return the stated figures; HTML pair 600 of 601 and |
949bab5 to
34bbdef
Compare
|
NEEDS CHANGES at The defect was in round 3's own fix, and it was mine. I had rewritten the Mermaid rule Worse than a miss — I had the evidence and talked myself out of it. My round-3 That is the fourth instance of the one class every round has found, and the page's own Round 4 confirmed everything else by its own measurement rather than from the diff: 12 Four UNVERIFIED items, all historical rather than about the tree as it stands: the ~thirty Verified after my fix: 0 lines over 88, max exactly 88; 0 underline mismatches; build 61 |
34bbdef to
8fb086a
Compare
|
NEEDS CHANGES at 1. "every label in the six Several carry a colon, so the page's own stated reason would have quoted them and 2. The figure-pinning sentence named two pages; there are three. 3. One of my own, caught by the page's own rule while fixing the above: my edit left Round 5 re-derived and confirmed: 12 directives on 11 pages with the exclusion and 15/12 Every provenance citation checked against the real sources and all hold, including the Its UNVERIFIED list is the build comparison and the sdist/wheel rebuild, both of which |
The documentation rulings settled on #719 lived only in that issue thread, and conventions/ held five pages all about code or process. Add a sixth that records them, so a later sweep has a checklist rather than a recollection. * New conventions/documentation.rst, labelled `.. _documentation:`, covering heading case and shape, the two traps a heading rename sets, Mermaid for flows, where a toctree caption renders, paraphrasing a ruling, accuracy and quantifier claims, resolvable `.. module::` targets, and the file-format split. * conventions/index.rst introduces it in the preamble and lists it in the toctree. * test_conventions_doc_claims.py's ANCHORS gains the new page, so its existence, its anchor and its toctree position are all pinned like the other five. * Cite the issue, never the pull request, per the #719 ruling: a PR describes what was true the day it merged and the next change can falsify the citation without touching it. All 13 PR references are gone -- replaced by the issue the rule was settled on, or by a description of what the change did. The page records the rule itself, and every citation left on it is an issue. * All three worked greps exclude this page, which writes the captions and the directive names in its own prose and would otherwise count itself: 15/12 as first written against the real 12/11. * The Mermaid rule is stated as a reason -- quote a node label Mermaid would otherwise parse -- and scoped to node labels, because the exemplars' edge labels follow no rule: `|workflow_run: completed|` and `|02:00|` are bare. * The figure-pinning sentence names all three pages that have a figure test. This page's own figures are pinned by nothing, and the prose says so. * The NotImplemented exception is corrected. Measured on 1.5.0b8: all 33 modules ship in both the sdist and the wheel and import as namespace submodules, so the exception is a deliberate choice, not a packaging consequence. What holds is that they are not a package -- find_packages returns 73 and omits all four. * Four sentences used gendered pronouns for the owner; now neutral. Verified against its own rules: nine headings, all Title Case, none a sentence, every underline exact, longest line exactly 88 columns, zero PR citations. All three worked greps re-run verbatim against a built tree return the figures the prose states, and the HTML pair returns 600 of 601 and exactly 1. Sphinx build succeeds with 61 warnings, no duplicate-label or orphan and none naming the new page. 37 passed, 1 skipped, 140 subtests.
8fb086a to
3e7340d
Compare
|
GOOD TO GO at Round 6 re-derived every quantified claim rather than reading the diff. Confirmed: 12 directives It closed round 5's UNVERIFIED build comparison, which is the useful part: both the PR tree and One divergence I checked rather than relayed. It measured UNVERIFIED by it: the test run, and the historical sweep figures round 5 had already checked |
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeWhat is the purpose of your pull request?
docs— documentation onlyDescription of your pull request and other information
conventions/held five pages, all about code or process, so every documentationruling from #719 lived only in that thread. New
conventions/documentation.rstrecords them;
conventions/index.rstintroduces and lists it, andtest_conventions_doc_claims.py'sANCHORSgains the page so its anchor and toctreeposition are pinned like the other five.
Rules recorded, with provenance: heading case and shape (#719, and #971 for the
62-heading sweep, the finite-verb test, and a heading having to describe its section);
the rename traps — re-measure the underline, sweep the whole repository not just
docs/, derive old headings from the pre-change file rather than the diff (all #971;#934 for a dead reference staying green); Mermaid for flows (#719, bounded by his
no-duplicate-information condition; style model re-derived as 12 directives on 11
pages); toctree captions (#972, #975); paraphrase, never quote (#719, #949/#951);
accuracy (#719, #657's six-form method, #911 and
68fbccd90as worked quantifierdefects, plus the test-pinned
#NNN-matches-its-URL rule); resolvable.. module::targets (#719); reST inside
docs/source/, Markdown outside (#719, 2026-09-26).Left out: "
.rst, never.md" — #719 explicitly corrected that, so the pagecarries the corrected split instead. Also left out:
#nnnneverGH-nnn, for whichno ruling exists and which the tree contradicts (four live
GH-nnncomments inpcapkit/). Added: the finite-verb test, heading-describes-section, no inline.. contents::, and that a measured Sphinx setting records its measurement beside it.Verified against its own rules: 9 headings, all Title Case, none a sentence, every
underline exact; all 8
:ref:, 3:doc:and 4:mod:references resolve in the builtHTML; no duplicate-label warning for
.. _documentation:. Sphinx build succeeds with61 warnings, byte-identical to a baseline build of
main. 67 tests across the fivemodules that read these pages:
OK (skipped=1)under bothpytestand plainunittest.