docs: link static plugin implementation as plugin API example - #642
docs: link static plugin implementation as plugin API example#642Ethan-Arrowood wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the documentation in plugin-api.md and overview.md to include links to the open-source implementation of the built-in static plugin. The feedback suggests hyphenating 'open-source' when it is used as a compound modifier preceding a noun.
| ## Example: Static File Server Plugin | ||
|
|
||
| A simplified form of the built-in `static` plugin demonstrating key Plugin API patterns: | ||
| A simplified form of the built-in `static` plugin demonstrating key Plugin API patterns. For a complete, production example of this API in action, read the plugin's open source implementation in [`server/static.ts`](https://github.com/HarperFast/harper/blob/main/server/static.ts). |
There was a problem hiding this comment.
Use a hyphen for "open-source" when it functions as a compound modifier preceding the noun "implementation".
| A simplified form of the built-in `static` plugin demonstrating key Plugin API patterns. For a complete, production example of this API in action, read the plugin's open source implementation in [`server/static.ts`](https://github.com/HarperFast/harper/blob/main/server/static.ts). | |
| A simplified form of the built-in `static` plugin demonstrating key Plugin API patterns. For a complete, production example of this API in action, read the plugin's open-source implementation in [`server/static.ts`](https://github.com/HarperFast/harper/blob/main/server/static.ts). |
🚀 Preview DeploymentYour preview deployment is ready! 🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-642 This preview will update automatically when you push new commits. |
The static file plugin is now open source. Link its implementation from the Static Files overview (source of truth for behavior) and from the Plugin API page (real-world example of the modern plugin API). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Review feedback on #642: "open source implementation" uses a compound modifier before a noun, which takes a hyphen. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
6b1cf76 to
e4d100b
Compare
🚀 Preview DeploymentYour preview deployment is ready! 🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-642 This preview will update automatically when you push new commits. |
The static file plugin is now open source, and its implementation is a good worked example of the modern Plugin API. This adds a cross-reference to it from the two pages a reader would land on.
Changes
reference/static-files/overview.md- one sentence after the intro pointing atserver/static.tsas the source of truth for the documented behavior.reference/components/plugin-api.md- extends the existing "Example: Static File Server Plugin" lead-in to point from the simplified snippet at the complete production implementation.No restructuring on either page; both edits are a single sentence plus a link.
Verification
npm run format:checkcleannpm run buildsucceeds (exit 0)Note: the build emits two broken-anchor warnings (
/reference/v5/backups/overviewand/release-notes/v5-lincoln/5.1). Both are pre-existing onmainand unrelated to these files.Closes #375
🤖 Generated with Claude Code