Skip to content

Docs: separate the widget walkthrough from the reference - #2

Merged
SandObserver merged 1 commit into
mainfrom
docs/reorganise-widget-guide
Aug 9, 2026
Merged

SandObserver merged 1 commit into
mainfrom
docs/reorganise-widget-guide

Conversation

@SandObserver

Copy link
Copy Markdown
Owner

Summary

  • Reorder docs/widgets.md so the three-step walkthrough runs uninterrupted (folder structure, manifest, data.js, index.html, cache-busting, checklist), followed by a # Reference half.
  • Group the reference sections under Reference: the manifest, Reference: data.js and Reference: the frontend, leaving Toolbox (optional) as its own section.
  • Add a contents list at the top and one pointer from each walkthrough step into the reference that expands it.
  • No prose was rewritten and no heading text changed: a line-by-line comparison against the previous revision shows additions only.

Testing
All green, including the 4 tests in ui/test/widget-docs.test.mjs that pin the iframe parameter table, canvas sizes and CSP by value. Verified separately that all 10 internal anchors resolve and that docs/api-errors.md's inbound widgets.md#reporting-a-failure link still points at a real heading.

Checklist

  • Stays within the project constraints: one container, no runtime dependencies, no build step (see CONTRIBUTING.md).
  • Tests added or updated for new logic, and the full suite, lint, and typechecks pass.
  • Docs updated if behavior or configuration changed.
  • CHANGELOG.md updated under Unreleased if the change is user-visible.

widgets.md interleaved a three-step tutorial with lookup material, so reading
it start to finish meant paging through field-type and ctx tables, and looking
up ctx.fail meant scrolling past the walkthrough.

The walkthrough now runs uninterrupted from the folder layout to the checklist,
and every reference section sits below it under three headings. Each step links
to the reference that expands it. No prose changed and every existing heading
kept its text, so all anchors, including widgets.md#reporting-a-failure, still
resolve.
@SandObserver SandObserver added the documentation Improvements or additions to documentation label Aug 9, 2026
@SandObserver
SandObserver merged commit 8ad511c into main Aug 9, 2026
3 checks passed
@SandObserver
SandObserver deleted the docs/reorganise-widget-guide branch August 9, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant