Skip to content

docs: link static plugin implementation as plugin API example - #642

Open
Ethan-Arrowood wants to merge 2 commits into
mainfrom
docs/static-plugin-source-link
Open

docs: link static plugin implementation as plugin API example#642
Ethan-Arrowood wants to merge 2 commits into
mainfrom
docs/static-plugin-source-link

Conversation

@Ethan-Arrowood

Copy link
Copy Markdown
Member

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 at server/static.ts as 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:check clean
  • npm run build succeeds (exit 0)

Note: the build emits two broken-anchor warnings (/reference/v5/backups/overview and /release-notes/v5-lincoln/5.1). Both are pre-existing on main and unrelated to these files.

Closes #375

🤖 Generated with Claude Code

@Ethan-Arrowood
Ethan-Arrowood requested a review from a team as a code owner August 27, 2026 20:34

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread reference/components/plugin-api.md Outdated
## 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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use a hyphen for "open-source" when it functions as a compound modifier preceding the noun "implementation".

Suggested change
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).

@github-actions
github-actions Bot temporarily deployed to pr-642 August 27, 2026 20:37 Inactive
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-642

This preview will update automatically when you push new commits.

Ethan-Arrowood and others added 2 commits August 27, 2026 15:36
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>
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-642

This preview will update automatically when you push new commits.

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.

Update the static extension/plugin docs to reference open source code

2 participants