Repository navigation
docs: restore the README shape CORELIB_PLAN §9 prescribes - #110
Merged
Merged
Conversation
§9 fixes the section list and its order for every corelib README — "do not change the section ordering and do not invent new top-level sections" — because that shared shape is what lets a reader who knows one port navigate any other. This README had drifted from it in three places: * `## Choosing between the two C++ corelibs` was a top-level section after `## Benchmarks`. §9.8 makes exactly this comparison the *final subsection* of Benchmarks when a language ships two corelibs for two use cases, so it is demoted to `###` (and its Callgrind table with it). Anchors are unchanged, so the links into it still resolve. * `## Feature flags` was an invented section covering one knob, `SOFAB_STRICT_UTF8`, already documented under Usage. Its content folds into that subsection: the knob is the only one, and the header always compiles the full wire format. * The §9.2 badge block carried Coverage and Docs only; §9.2 asks for CI, coverage and Docs. The x86_64 GCC build badge now opens the block, and the per-target table stays as the full matrix. The shape is a property of the document, so no C++ test can see it drift — the new `test_readme_structure` suite reads README.md and checks the §9.1 header block, the §9.2 badge block and its order, the exact §9 top-level section list, §9.4 (no API-documentation section) and the §9.8 placement of the two-corelib comparison. It fails on the previous README with exactly these four findings, skips when a tree carries no README, and runs under CTest beside the existing document-level check, `test_ci_workflows`. Closes #91
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #91.
CORELIB_PLAN §9 fixes the README section list and its order for the whole corelib family ("do not change the section ordering and do not invent new top-level sections") — that shared shape is what makes one port's README navigable to a reader who knows another. This README had drifted in three places.
Changes
## Choosing between the two C++ corelibswas a top-level section after## Benchmarks. §9.8 makes exactly this comparison the final subsection of Benchmarks when a language ships two corelibs for two use cases, so it is demoted to###, and its### Instruction counts (Callgrind)table to####. GitHub anchors are unaffected by the level change, so every link into it still resolves.## Feature flagswas an invented top-level section documenting one knob,SOFAB_STRICT_UTF8, which#### Strict UTF-8 validationunder## Usagealready covers. Its content (only knob, no#ifdefwire-type gating,SOFAB_DISABLE_*is a harness-only name here) folds into that subsection.Build: x86_64 (GCC)badge now opens the block; the per-target table stays as the full matrix and says so.Regression test
The shape is a property of the document, so nothing inside the library can notice it drifting. New
test/test_readme_structure.sh, wired into CTest next to the existing document-level checktest_ci_workflows, readsREADME.mdand requires:###subsection sitting under## Benchmarks.Headings are read from a copy with fenced code blocks blanked, so a
#comment in a shell snippet is not mistaken for a section. It exits 77 (CTest "skipped") in a tree with no README.On the pre-fix README it reports exactly the four findings from the issue:
Full suite green locally in both
DebugandRelease(5/5, theBuild & testsection is updated to describe the new suite).