Skip to content

Connect the two effects pages where a reader actually needs the link - #570

Merged
godofecht merged 1 commit into
mainfrom
effects-doc-links
Aug 19, 2026
Merged

godofecht merged 1 commit into
mainfrom
effects-doc-links

Conversation

@godofecht

@godofecht godofecht commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to a question about whether language/async-effects.md and effects-showcase.md should be consolidated.

Why not consolidate

The actual content overlap is one code block. Recipe 22 declares an effect Async and a SyncAsync capability that are identical to lib/stdlib/async.flow's Async and SimulatedAsync. Nothing else is shared.

The pages do different jobs and change at different rates:

  • effects-showcase.md teaches the language feature. 24 recipes; changes when effect semantics change.
  • language/async-effects.md is 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 Async and SimulatedAsync, 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:

  • unhandled-effect behaviour → recipes 13-15
  • effect-row typing → recipes 10-12

Verification

Checked in the rendered wiki with a browser rather than by inspection, since the wiki is hash-routed and encodes path#anchor as a single %23-escaped token:

target heading '#13. Turn unhandled effects into compile-time errors' at viewport y=248
target heading '#10. Declare an effect row on a function' at viewport y=248

Both land the target heading at the same offset below the sticky header.

check_doc_links.py reports all 1432 relative links and 137 fragments resolve; check_wiki_links.py and test_doc_anchors.py are clean.

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]>
@godofecht
godofecht merged commit 4864ba0 into main Aug 19, 2026
21 checks passed
@godofecht
godofecht deleted the effects-doc-links branch August 19, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant