Add docusaurus-plugin-copy-page-button#991
Merged
willeastcott merged 2 commits intoMay 26, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the docusaurus-plugin-copy-page-button plugin to the Docusaurus configuration so documentation readers can copy/view the current page as clean markdown (and optionally open it in common AI assistants), complementing the existing whole-corpus llms.txt exports.
Changes:
- Added
docusaurus-plugin-copy-page-button@^0.6.2to runtime dependencies. - Registered
docusaurus-plugin-copy-page-buttonindocusaurus.config.js’spluginsarray. - Updated
package-lock.jsonto include the new dependency resolution.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Adds docusaurus-plugin-copy-page-button dependency. |
| package-lock.json | Locks the added plugin version and metadata. |
| docusaurus.config.js | Enables the plugin via the Docusaurus plugins configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
Looks cool - thanks! |
portdeveloper
added a commit
to portdeveloper/docusaurus-plugin-copy-page-button
that referenced
this pull request
May 26, 2026
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.
Summary
Adds
docusaurus-plugin-copy-page-buttonto the PlayCanvas developer site so readers can copy any documentation page as clean markdown — useful when piping engine/editor docs into ChatGPT, Claude, Perplexity, or Gemini for help with PlayCanvas scripts, scenes, or shader work.The plugin auto-injects a small "Copy page" button + dropdown into the doc page's table-of-contents area. The dropdown offers:
Live preview of the UI: https://portdeveloper.github.io/copy-page-button-showcase/
Complements existing
llms.txtcorpus exportThe repo already has a custom
utils/plugins/docusaurus-plugin-llms.mjsthat generates/llms.txtand/llms-full.txtat build time — those are great for whole-corpus consumption. This plugin is the per-page complement: a reader on a specific page can grab just that page's markdown for a focused AI conversation. It doesn't replace or duplicate the existing exports.Adoption
The plugin currently ships on the docs sites for React Native (just merged via facebook/react-native-website#5085), Puppeteer, Arbitrum, Cardano, Sui, Ethereum execution-apis, and several others — full list in the project README.
Changes
'docusaurus-plugin-copy-page-button'to thepluginsarray indocusaurus.config.jsdocusaurus-plugin-copy-page-button@^0.6.2todependenciespackage-lock.jsonupdatesnpm run buildpasses for bothenandjalocales.