Skip to content

Add docusaurus-plugin-copy-page-button#8568

Open
portdeveloper wants to merge 1 commit into
facebook:mainfrom
portdeveloper:add-copy-page-button
Open

Add docusaurus-plugin-copy-page-button#8568
portdeveloper wants to merge 1 commit into
facebook:mainfrom
portdeveloper:add-copy-page-button

Conversation

@portdeveloper
Copy link
Copy Markdown

@portdeveloper portdeveloper commented May 26, 2026

Summary

Adds docusaurus-plugin-copy-page-button to 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:

  • Copy as markdown
  • View as markdown
  • Open in ChatGPT / Claude / Perplexity / Gemini

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

  • Added 'docusaurus-plugin-copy-page-button' to the plugins array in packages/lexical-website/docusaurus.config.ts
  • Added docusaurus-plugin-copy-page-button@^0.7.0 to packages/lexical-website/dependencies
  • Resulting pnpm-lock.yaml updates

Notes

I did not run the full pnpm -C ../.. run build && docusaurus build locally — that builds every workspace package first, which is expensive. The plugin add is a single string in the plugins array, 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 🙏

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment May 26, 2026 2:06pm
lexical-playground Ready Ready Preview, Comment May 26, 2026 2:06pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 26, 2026
Copy link
Copy Markdown
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

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

The "copy as markdown" functionality seem to work but none of the other choices appear to do anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants