docs: trim prose and modernize loader examples#77
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Tidies the docs pages, focused on the reimplement-the-loader page.
Changes
backend_authors_reimplement.md(the main one)load_providernow dispatches with amatch matches:over[]/[ep]/_instead of length checks; dropped the now-mootimportlib_metadata on <3.10note.merge(field, current, addition)code block usingmatch field:to dispatch on field shape — it was referenced by the resolution loop but never shown.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
producedreplace case, and the newmergeonly raises for a scalar reaching it (the static+dynamic conflict), which the surrounding prose spells out.Docs lint (prettier + blacken-docs) passes.