Skip to content

docs: cross-references everywhere, and the playground links its output to the docs - #35

Merged
4matic merged 11 commits into
mainfrom
docs/cross-references
Nov 14, 2026
Merged

4matic merged 11 commits into
mainfrom
docs/cross-references

Conversation

@4matic

@4matic 4matic commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Links every rule, option, field, warning, mode, function and type, at its first mention in a section, to where it is explained: the site reference or guide, the spec rule, and the language's API docs (docs.rs items, pkg.go.dev anchors). Examples get "try it" links that open the playground prefilled.

READMEs (root, js, python, rust, go, fixtures, generator)

  • Links about doubled; the root README went from 148 to 352.
  • 34 playground links, each checked against js/dist.
  • The "Other languages" tables get a Docs column.
  • New: a Go module badge, and an API docs column in the ports table.
  • go/LICENSE is linked from the Go README.

AGENTS.md

  • New rule: link the first mention of a rule, option, field, warning or function, and give examples a playground link.
  • The 0.6.0 release lessons: pkg.go.dev needs a license inside go/, and the first changelog compare link points at a tag that never existed.

Site pages

  • About 490 links across 20 pages.
  • "See also / Next" lists at the end of every page.
  • Fixes: the allArtists and filename-mode descriptions, and fuzz-ports on the testing page.
  • Go examples are indented with tabs, as gofmt writes them.

Playground and landing

  • Field names, values, option labels, tracklist columns and kinds link to the docs.
  • The code panel links each function the snippet uses to its API docs.
  • The code generators moved to site/src/lib/codegen.ts.
  • Generated snippets now match each language's formatter byte for byte (Biome, Ruff, rustfmt, gofmt). 36 of 92 differed before.
  • The Go imports keep the goimports grouping: standard library, a blank line, then the module.

Checks

  • Internal links and anchors resolve in the built site.
  • All 87 text fragments find their text.
  • External links return 200 (npmjs.com refuses curl, as before).
  • Examples on every page compile and match in all four languages.
  • Rust README doc tests pass, and so do the Go examples.

The docs commits under js/, python/, rust/ and go/ will open a 0.6.1 release PR after this merges, so the registries show the new READMEs.

…arning to its reference, spec rule and API docs, opens its examples in the playground, and adds a Go module badge and an API docs column
…sks docs to link the first mention of a rule, option, field, warning or function and to give examples a playground link
…site reference and the spec rules, with playground links and the other packages' READMEs, changelogs and API docs
…the site reference and the spec rules, with playground links and the other packages' READMEs, changelogs and API docs
…spec rules, with playground links and the other packages' READMEs, changelogs and API docs
… spec rules, point the license at go/LICENSE, and add playground links and the other packages' docs
… and the spec, and the skip lists and port READMEs
…, functions, types and warning codes to their reference or guide, docs.rs and pkg.go.dev items, playground links for the examples

Also: Go and Rust differential runs and fuzz-ports.mjs on the testing and contributing pages,
See also lists on contributing and roadmap, and a Parse options heading on reference/options.
…ippets as the formatters do

- The generated code moves to src/lib/codegen.ts and comes out as Biome, Ruff, rustfmt and gofmt
  print it: sorted JS imports, the quote style with fewer escapes, one space before `//` in JS and
  two before `#` in Python, long calls and arrays broken as each formatter breaks them, `1e21`
  instead of `1e+21`, and a Python list that does not fit on a line as `lines = [...]`. The Go
  imports keep the goimports groups (standard library, blank line, module) and drop the empty
  group when there is no standard-library import.
- Under each code panel, every function and type the snippet uses links to its API docs:
  docs.rs, pkg.go.dev, or the reference pages for JavaScript and Python.
- Field names in the field list link to their row in the ParsedTrack table; roles, version
  types, modifiers, junk kinds, flags, year, position, cue time and mode link to their guide
  sections. Option labels link to their rows in the options tables, the tracklist columns to
  TracklistEntry and ParsedTrack, the line kinds to the guide.
- The landing cards link their guides, and the stats line says the 0 differences are on the
  fixtures.
@4matic
4matic merged commit 3704d94 into main Nov 14, 2026
23 checks passed
@4matic
4matic deleted the docs/cross-references branch November 14, 2026 03:06
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