Skip to content

chore: add v8 script and update v8 plugin docs - #584

Merged
andredestro merged 3 commits into
mainfrom
chore/api-v8
Aug 10, 2026
Merged

chore: add v8 script and update v8 plugin docs#584
andredestro merged 3 commits into
mainfrom
chore/api-v8

Conversation

@andredestro

@andredestro andredestro commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What

  • Adds scripts/api-v8.mjs with the plugin list pointing to the latest npm tag and main GitHub branches, targeting versioned_docs/version-v8/apis/
  • Adds the generate-v8-plugin-docs npm script
  • Runs npm run generate-v8-plugin-docs to refresh the versioned v8 plugin docs (picks up the latest geolocation 8.2.1 README and the corrected background-runner edit URL)
  • Adds a vercel.json redirect from /docs/v8/:match* to /docs/:match*: with lastVersion: 'v8', Docusaurus serves the v8 docs at the /docs root and does not create a /docs/v8 route, so https://capacitorjs.com/docs/v8 currently returns 404

Why

Once scripts/api.mjs starts tracking the next tag for Capacitor 9, this script keeps the Capacitor 8 plugin docs under /docs/v8/apis updatable independently, and /docs/v8 links resolve to the current stable (v8) content.

Notes

  • The /docs/v8 redirect must be removed when Capacitor 9 goes final (when lastVersion flips back to current), since v8 will then get its own real /docs/v8 route and the redirect would shadow it
  • npm run build passes locally

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
capacitor-docs Ready Ready Preview Aug 10, 2026 12:50pm

Request Review

@andredestro
andredestro marked this pull request as draft August 7, 2026 15:06
Base automatically changed from chore/v9 to main August 10, 2026 09:24
Comment thread scripts/api-v8.mjs Outdated
Comment thread package.json
@@ -12,6 +12,7 @@
"generate-plugin-docs": "node scripts/api.mjs",
"generate-v6-plugin-docs": "node scripts/api-v6.mjs",

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.

Also opened a PR to remove v6 docs script - #587

@andredestro
andredestro merged commit 26ebefe into main Aug 10, 2026
2 checks passed
@andredestro
andredestro deleted the chore/api-v8 branch August 10, 2026 13:41
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.

2 participants