Skip to content

docs(index): drop README-pointer disclaimer + add Install + new First-match#12

Merged
chad-loder merged 1 commit into
mainfrom
docs/index-page-refresh
May 13, 2026
Merged

docs(index): drop README-pointer disclaimer + add Install + new First-match#12
chad-loder merged 1 commit into
mainfrom
docs/index-page-refresh

Conversation

@chad-loder
Copy link
Copy Markdown
Owner

Summary

The docs/index.md still said "This site is a work in progress. For the moment, the project README is the most complete reference: installation, the engine-pluggability story, the WHATWG conformance matrix, and the comparisons with other Python routers."

After phases 1-9, every claim in that sentence is no longer true:

  • installation is in this commit
  • engine pluggability is in Examples + Architecture
  • the conformance matrix is the WPT Conformance page
  • comparisons live in their own section

New home page

  • BLUF mirrors the README's lede (100% / 469 of 469)
  • Install section (two lines: stdlib re default + [regex] extra for full conformance)
  • First match code block: cross-component multi-tenant example — tested against the real library before committing
  • Where to go next — six-bullet directory to the rest of the site

Also fixes a stale .pathname.groups (attribute) access to .pathname['groups'] (dict).

Test plan

  • uv run python -c '...' confirms the new example's three asserts all pass
  • just docs strict build clean
  • just lint all 11 tools pass
  • CI on this PR stays green

…isclaimer

The previous docs/index.md disclaimed itself as a work in progress
and pointed readers back to the GitHub README for installation,
the engine-pluggability story, and the conformance matrix. With
phases 1-9 of the docs work landed, none of that is true anymore:

* installation lives here (this commit adds it),
* engine pluggability is explained in Examples + Architecture,
* the conformance matrix is the WPT Conformance page,
* comparisons live in their own section.

Rewritten home page:

* Lead with the same 100%-conformance / 469 / 469 BLUF as the
  README so first impressions match across surfaces.
* New Install section. Two lines: pip install yarlpattern (stdlib
  re, 99.5% conformance) or pip install 'yarlpattern[regex]' for
  the JS v-flag set-ops that close the last 2 of 366 data-corpus
  cases. One sentence on why the gap exists.
* New First match example: cross-component URLPattern({hostname,
  pathname}) extracting tenant + version + tail in one .exec()
  call. Same example shape as the README's lede so a reader
  arriving from either surface sees the same pattern. Tested
  against the real library before committing.
* New 'Where to go next' section: a six-bullet directory of the
  rest of the site (Overview / Examples / Reference / Comparisons
  / WPT Conformance), replacing the README-pointer block.

The pre-existing .pathname.groups attribute access pattern is also
fixed in the example — the correct accessor is .pathname['groups']
(dict, not attribute).
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 13, 2026
@chad-loder chad-loder merged commit b8728b6 into main May 13, 2026
11 checks passed
@chad-loder chad-loder deleted the docs/index-page-refresh branch May 13, 2026 01:15
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