Skip to main content

Module first_party_docs

Module first_party_docs 

Expand description

#2455: doc links to first-party names ([Clock], [Clock.now]).

First-party (bynk, bynk.cloudflare, bynk.crypto) units are synthetic: their symbols never reach index.symbols, so resolve_doc_link cannot find them and there is no file to open. They link to the Book instead, via this curated table — deriving anchors from headings is brittle while some capabilities are table rows rather than headings. Granularity is the capability: an operation links to its capability’s entry. The target is the live Book, as the diagnostic codeDescription links are.

Constants§

FIRST_PARTY_DOCS

Functions§

in_scope_names
Every first-party capability (Clock) and operation (Clock.now) name whose unit is in owner_unit’s doc-link scope: the did-you-mean candidates for a link that resolve_first_party_doc_link rejected.
resolve_first_party_doc_link
The Book URL for the first-party capability a doc-link name (Clock or Clock.now) names, provided its unit is in owner_unit’s doc-link scope. Run only after the project scope found nothing.