Repository navigation
docs: show the verification result on every example, and publish the totals - #559
Merged
Merged
Conversation
…totals The claim that the documentation compiles was only visible to whoever ran the CI job. It is now visible to the reader, in two places. Every ```flow block in the wiki carries its result in the header above the code: Compiles, Rejected on purpose, Not compiled, or Not compiling yet, with the written reason in the tooltip where there is one. The lookup uses the same key as the ratchet, a hash of the block's own text, so the badge cannot drift from the ledger: change the code and the key changes with it. A generated page at project/example-status.md carries the totals, what each result means, how the ratchet is enforced, and every page that still has blocks that do not build. The gaps are as visible as the successes, which is the point; a status page that only reported good news would not be worth having. Blocks with no badge are the ones no ledger row matches, which means they were never tagged as Flow in the source. Highlight.js guesses a language for untagged blocks, so a handful render as Flow without being tracked. Leaving them unmarked is honest: no badge means no claim. Two things this turned up. The badge made the code header wider than a narrow column, clipping the language label and the copy button, so the header now wraps. And the GENERATED allowlist in check_doc_links.py is a set inside a frozenset call, which took a second attempt to edit correctly. Overflow audit clean at seven widths, wiki checks pass, contrast 0, unit 1515. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
You asked for a way of showing that every example runs. It is now shown in two places, both generated from the same ledger the CI gate writes.
On every block
Each
```flowblock in the wiki carries its result in the header above the code:expect-error; the page is about what the compiler refusesignore=with a written reason, shown in the tooltipThe lookup uses the same key as the ratchet — a hash of the block's own text — so the badge cannot drift from the ledger. Change the code and the key changes with it, so a stale green is not possible.
On its own page
project/example-status.mdis generated bybuild_wiki.pyfromdocs/generated/example-status.json:It then lists every page that still has blocks which do not build, worst first. The gaps are as visible as the successes, which is the point — a status page reporting only good news would not be worth having.
What has no badge, and why
Blocks with no badge are the ones no ledger row matches, which means they were never tagged as Flow in the source. Highlight.js guesses a language for untagged blocks, so a handful render as Flow without being tracked. Leaving those unmarked is the honest option: no badge means no claim. Tagging them is real content work and belongs in its own change.
Two things it turned up
The badge made the code header wider than a narrow column and clipped the language label and copy button. The overflow audit caught it at 390px:
The header now wraps, and the audit is clean again at all seven widths.
Also,
GENERATEDincheck_doc_links.pyis a set inside afrozenset(...)call, and my first edit put the new entry after the closing brace — a syntax error the link checker reported immediately.Validation
wiki_verify.pyall checks pass;wiki_contrast.py0 low-contrast elementscheck_doc_examples.py --check-ledger,check_doc_coverage.py,wiki_nav.py,check_wiki_links.py,check_doc_links.pyall clean