Skip to content

list every plugin on the supported apis pages, built from patch-it-plugins - #9

Merged
adssib merged 2 commits into
mainfrom
docs-plugin-list
Nov 18, 2026
Merged

adssib merged 2 commits into
mainfrom
docs-plugin-list

Conversation

@adssib

@adssib adssib commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Adds Supported APIs → All plugins (/supported-apis/plugins/): every plugin patch-it runs, generated at build time from docs/plugins.md in the public patch-it-plugins repo, the one list of supported plugins.

How the sync works

  • scripts/sync-plugins.mjs runs as npm's prebuild, so npm run build (what Railway runs) does it first. It downloads docs/plugins.md from patch-it-plugins' main (raw.githubusercontent.com, public, no token, 10 s timeout), takes the table between <!-- plugins:start --> and <!-- plugins:end --> (only lines that are table rows), and writes it between the same markers in src/content/docs/supported-apis/plugins.md.
  • Fallback: the page is committed with today's table. If GitHub can't be reached, returns an error, or the file has no table, the script warns and keeps the committed copy. The build never fails on it.
  • npm run sync-plugins refreshes the committed copy (commit the page after). PLUGINS_LIST_URL=<raw url> previews another branch.
  • Documented in the README ("The list of plugins").

Why build-time fetch rather than a committed copy + CI check

This repo has no CI, and a copy + check would still need someone to copy. A ~60-line script with no dependency keeps the site current on every deploy and degrades to the committed copy. Trade-off: a change merged in patch-it-plugins appears on the next docs deploy, not immediately (a cross-repo trigger can come later if that matters).

Other changes

  • overview.md: one line linking to the new page.
  • Sidebar order: All plugins is 2nd in Supported APIs; Stripe/OpenAI/Anthropic/Request an API move down one.

Tests run (Node 22.23.2)

  • npm ci && npm run build: clean, same pre-existing i18n warning as main. patch-it-plugins' main has no docs/plugins.md yet (it's in patch-it-plugins#1), so the build hit HTTP 404 and used the committed copy: dist/supported-apis/plugins/index.html has the 12 rows.
  • Against the PR branch (PLUGINS_LIST_URL=…/skeleton/docs/plugins.md): "up to date"; with a row deleted locally: "updated … (12 plugins)", page restored byte-identical; against a file with no markers: kept the committed copy.

llms.txt (#8)

Not touched. The new page has well over 30 words outside any "Coming soon" aside and the table is plain Markdown in the page body, so #8's llms.txt / llms-full.txt will list it under Supported APIs once both are merged (the two HTML comment markers will appear in llms-full.txt; harmless). Both PRs add a README section right before "## The look", so whichever merges second may need a trivial README conflict fix.

Calls I made (please check)

  • Build-time fetch + committed fallback (above), not a copy + CI check.
  • Page title "All plugins", order 2; the provider pages keep their content.
  • Only table rows are copied from the other repo, so nothing else in that file can reach the site.

Related PRs

🤖 Generated with Claude Code

…ugins

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adssib
adssib merged commit 27d85da into main Nov 18, 2026
@adssib
adssib deleted the docs-plugin-list branch November 18, 2026 07: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