Add docusaurus-plugin-copy-page-button#93
Conversation
Adds a 'Copy page' button to the docs sidebar that exports the page as clean markdown for use with ChatGPT, Claude, and Gemini.
|
Friendly bump — happy to revise, rebase, or close this if it's not a fit for your project. Quick update since I opened it: Cardano docs shipped the plugin (merged in input-output-hk/cardano-documentation#739), so it's now running in production on Ethereum execution-apis, Sui (Mysten Labs), Walrus, Seal, SuiNS, Monad, Flare, Kaia, Nillion, Chronicle, and Cardano. Also now listed in the official Docusaurus community plugins. No worries if this isn't on your roadmap — just want to make sure it didn't slip through the cracks. |
|
fyi shipped 0.5.2 today and pushed the version bump (^0.4.2 → ^0.5.2) on this branch. the most relevant fix: the button now renders on pages without a ToC. previously the fallback was a fixed-position overlay in the top-right viewport corner which often got hidden behind navbars — easy to miss when reviewing a landing/index page. now it injects inline after the breadcrumbs. also in 0.5.2: button + dropdown inherit all credit to @Simek who reviewed facebook/react-native-website#5085 and flagged these. happy to close this out if not a fit — just wanted to flag the fixes in case the no-ToC behavior was a blocker. |
What this adds
A "Copy page" button in the docs sidebar that exports the current SRS docs page as clean markdown, with one-click "Open in ChatGPT", "Open in Claude", and "Open in Gemini" actions.
Why for SRS
SRS users wrangling streaming pipelines (RTMP/SRT/WebRTC, transcoders, low-latency tuning) hit AI tools constantly while building configs and debugging. There's already a placeholder for an AI assistant link in the navbar (currently commented out in
docusaurus.config.js), so the project clearly cares about AI-friendly docs. This plugin gives users a one-click handoff from any docs page into their AI tool of choice.Production users
The plugin is currently shipping on Ethereum execution-apis, Sui (Mysten Labs), Walrus, Seal, SuiNS, Monad, Flare, Kaia, Nillion, Chronicle, Cardano, Kurtosis, and Dagger docs. ~10k npm installs/month.
Changes
docusaurus-plugin-copy-page-buttontodependenciespluginsarray indocusaurus.config.jsThe button auto-injects into the table-of-contents sidebar. No further config required, theme-aware, mobile-friendly.
Links
Happy to revert or adjust if this doesn't fit the project's direction.