Repository navigation
Connect the two effects pages where a reader actually needs the link - #570
Merged
Merged
Conversation
The showcase's only pointer to Async via Effects sat at line 583, inside the runnable example map. The async recipe is at line 473, so a reader learning async in the cookbook had no route to the page documenting the async runtime. Recipe 22 now names the connection: its locally declared Async effect and SyncAsync capability are the stdlib's Async and SimulatedAsync, and the real backends live behind that link. Two of the three links back from async-effects.md rendered as the bare string "effects-showcase.md", which reads as a path rather than a page, and both pointed at the top of a 653-line document. They now name the page and deep-link to the recipes they are actually about: 13-15 for unhandled effects, 10-12 for effect rows. Verified in the rendered wiki rather than by inspection: both anchors resolve and land the target heading at the same offset below the sticky header. 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.
Follow-up to a question about whether
language/async-effects.mdandeffects-showcase.mdshould be consolidated.Why not consolidate
The actual content overlap is one code block. Recipe 22 declares an
effect Asyncand aSyncAsynccapability that are identical tolib/stdlib/async.flow'sAsyncandSimulatedAsync. Nothing else is shared.The pages do different jobs and change at different rates:
effects-showcase.mdteaches the language feature. 24 recipes; changes when effect semantics change.language/async-effects.mdis a status page for the async runtime: implementation table, fiber and netpoll semantics, a 13-row deferred roadmap, next steps. It changes every time a fiber or netpoll feature lands.Merging would put a volatile roadmap inside a stable cookbook and produce a ~780 line page, already the longest in the docs.
What was actually wrong
The showcase's pointer was in the wrong place. Its only link to the async page sat at line 583, inside "Runnable example map". The async recipe is at line 473, so a reader learning async in the cookbook had no route to the runtime documentation. Recipe 22 now names the relationship explicitly: the effect and capability it declares locally are the stdlib's
AsyncandSimulatedAsync, and the real backends are behind the link.The links back were bare filenames pointing at a wall. Two of the three rendered as the literal string
effects-showcase.md, which reads as a path rather than a page, and both landed at the top of a 653-line document. They now name the page and deep-link to the recipes they are about:Verification
Checked in the rendered wiki with a browser rather than by inspection, since the wiki is hash-routed and encodes
path#anchoras a single%23-escaped token:Both land the target heading at the same offset below the sticky header.
check_doc_links.pyreports all 1432 relative links and 137 fragments resolve;check_wiki_links.pyandtest_doc_anchors.pyare clean.