Add docusaurus-plugin-copy-page-button#4618
Open
portdeveloper wants to merge 1 commit into
Open
Conversation
|
@portdeveloper is attempting to deploy a commit to the Temporal Team on Vercel. A member of the Team first needs to authorize it. |
|
|
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 docs.temporal.io so readers can copy any page as clean markdown — useful when piping workflow/activity API or troubleshooting 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/
Relationship to existing LLM features
Temporal docs already does great work on machine-readable content:
docusaurus-plugin-llmsgenerates/llms.txt,/llms-full.txt, and the customllms-quickstart.txt/llms-api-reference.txtcorpus files.plugins/markdown-pagesplugin makes every page available at<path>.md.This PR doesn't replace or duplicate any of that — those remain perfect for whole-corpus consumption and agent fetching. The plugin adds the UI affordance: a reader on a specific page can grab just that page's markdown, or one-click open it in ChatGPT/Claude/Perplexity/Gemini for a focused conversation. Build output confirms all existing corpus files still generate.
Adoption
The plugin currently ships on 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.2todependenciesyarn.lockupdatesyarn buildpasses — existingllms.txt,llms-full.txt, custom corpus files, andmarkdown-pagesoutput all still generate.┆Attachments: EDU-6425 Add docusaurus-plugin-copy-page-button