Skip to content

docs: trim prose and modernize loader examples#77

Merged
henryiii merged 1 commit into
mainfrom
docs/trim-and-modernize
Jul 1, 2026
Merged

docs: trim prose and modernize loader examples#77
henryiii merged 1 commit into
mainfrom
docs/trim-and-modernize

Conversation

@henryiii

@henryiii henryiii commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🤖 AI text below 🤖

Tidies the docs pages, focused on the reimplement-the-loader page.

Changes

backend_authors_reimplement.md (the main one)

  • load_provider now dispatches with a match matches: over [] / [ep] / _ instead of length checks; dropped the now-moot importlib_metadata on <3.10 note.
  • Added a merge(field, current, addition) code block using match field: to dispatch on field shape — it was referenced by the resolution loop but never shown.
  • Trimmed redundant prose throughout (intro, provider-loading, key-points, and merge-semantics sections).

Other pages — lighter, since they were already fairly tight:

  • backend_authors.md: removed a filler sentence and tightened the loader-dependency lead-in.
  • plugin_authors.md: dropped "There are three optional hooks.", which restated the heading and intro.
  • users.md: shortened the regex-example intro line.

The scalar static-vs-replace logic stays consistent: the loop still handles the produced replace case, and the new merge only raises for a scalar reaching it (the static+dynamic conflict), which the surrounding prose spells out.

Docs lint (prettier + blacken-docs) passes.

Use Python 3.10+ syntax and match statements in the reimplement-the-loader
page (match dispatch in load_provider, a shown match-based merge), and trim
redundant prose across the backend/user/plugin author pages.

Assisted-by: ClaudeCode:claude-opus-4.8
@henryiii henryiii merged commit 22ef34d into main Jul 1, 2026
11 checks passed
@henryiii henryiii deleted the docs/trim-and-modernize branch July 1, 2026 18:52
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