Skip to content

docs: full rewrite of the docs site content against the skill canon#29

Merged
jackielii merged 2 commits into
mainfrom
docs/rewrite
Jun 11, 2026
Merged

docs: full rewrite of the docs site content against the skill canon#29
jackielii merged 2 commits into
mainfrom
docs/rewrite

Conversation

@jackielii

Copy link
Copy Markdown
Owner

Summary

Full rewrite of docs/*.md (the docs-site content source) following the audit that found factual errors, forbidden patterns, and missing coverage. Companion sidebar commit is already on the docs-site branch (a8a1973).

Corrections

  • urlfor.md rewritten from scratch — previous version documented non-existent APIs (Ref{Name: ...} struct literal, URLForValidate, positional []any params, ID returning CamelCase) and described strict mode incorrectly
  • advanced.md type-alias section updated for strict mode — ambiguous lookups now error; previously claimed silent first-match
  • api.md gains the HTMXRenderTarget authoritative pass-0 (real-id match), HTMXv4RenderTarget, WithMaxIDLength, WithURLPrefix, and Init
  • All forbidden patterns purged: reflective RenderComponent(target, args) → constructed components; http.RedirectRedirect signal + HX-Location; http.Error endorsements removed; hard-coded URLs → URLFor; ~25 discarded errors now handled; {id} → specific param names

New pages

  • concepts.md — the canonical vocabulary (page, page group, component, page component, props cluster, partial) + request lifecycle
  • error-handling.md — buffering rules, ErrorWithStatus, the Redirect signal, JSON endpoints, SSE
  • lint.md — all six structpages-lint categories, suppression directives

Restructured

  • quick-start teaches /{$} and URLFor links from the first example
  • supported-flows reframed as the four response shapes (matching the skill)
  • htmx.md rebuilt around the three-site partial loop, the id scheme, and nested swap levels (Page → Content → Detail)

Verified

Docusaurus build passes locally with the new sidebar; no broken links or anchors from the rewritten pages (only pre-existing gomarkdoc anchor noise in the generated package reference).

intro/quick-start modernized (/{$}, URLFor links, lifecycle); new
concepts.md (vocabulary) and error-handling.md (buffering rules, typed
errors, Redirect signal, JSON form, SSE); routing gains {$}, wildcards,
param naming, page groups; supported-flows reframed as the four
response shapes; htmx rebuilt around the three-site loop, id scheme,
nested swap levels, and v4 selector; urlfor rewritten from scratch
(previous version documented non-existent APIs: Ref{Name}, URLForValidate,
positional []any params); middleware redirects via URLFor + HX-Location;
advanced fixes the type-alias section for strict mode.
api.md now covers Parse, all options (incl. WithMaxIDLength,
WithURLPrefix), Init, the four ServeHTTP signatures, direct-vs-
reflective RenderComponent, and the HTMXRenderTarget algorithm
including the authoritative pass-0 real-id match and the htmx 4
selector. New lint.md documents all six check categories and
suppression directives.
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.66%. Comparing base (31bf37a) to head (b482af8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage   94.66%   94.66%           
=======================================
  Files          15       15           
  Lines        1594     1594           
=======================================
  Hits         1509     1509           
  Misses         51       51           
  Partials       34       34           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jackielii jackielii merged commit fd1acc1 into main Jun 11, 2026
8 checks passed
jackielii added a commit that referenced this pull request Jun 17, 2026
docs: full rewrite of the docs site content against the skill canon
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