Add docusaurus-plugin-copy-page-button#8568
Open
portdeveloper wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
etrepum
reviewed
May 26, 2026
Collaborator
etrepum
left a comment
There was a problem hiding this comment.
The "copy as markdown" functionality seem to work but none of the other choices appear to do anything
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 Lexical docs site so readers can copy any page as clean markdown — useful when piping editor state, node types, or plugin architecture context into ChatGPT, Claude, Perplexity, or Gemini.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/
Adoption
The plugin currently ships on docs sites for React Native (via facebook/react-native-website#5085), PlayCanvas, Puppeteer, Arbitrum, Cardano, Sui, Ethereum execution-apis, and others — full list in the project README.
Changes
'docusaurus-plugin-copy-page-button'to thepluginsarray inpackages/lexical-website/docusaurus.config.tsdocusaurus-plugin-copy-page-button@^0.7.0topackages/lexical-website/dependenciespnpm-lock.yamlupdatesNotes
I did not run the full
pnpm -C ../.. run build && docusaurus buildlocally — that builds every workspace package first, which is expensive. The plugin add is a single string in thepluginsarray, matching the pattern landed in facebook/react-native-website#5085 and playcanvas/developer-site#991. Happy to provide a CI-friendly verification if useful.I used my agents to generate this PR, please let me know if you have any further questions! I will be replying asap 🙏