Add docusaurus-plugin-copy-page-button for AI-friendly docs#1400
Open
portdeveloper wants to merge 1 commit intologto-io:masterfrom
Open
Add docusaurus-plugin-copy-page-button for AI-friendly docs#1400portdeveloper wants to merge 1 commit intologto-io:masterfrom
portdeveloper wants to merge 1 commit intologto-io:masterfrom
Conversation
Adds a 'Copy page' button to the docs sidebar that exports the page as clean markdown for use with ChatGPT, Claude, and Gemini.
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.
What this adds
A "Copy page" button in the docs sidebar that exports the current Logto docs page as clean markdown, with one-click "Open in ChatGPT", "Open in Claude", and "Open in Gemini" actions.
Why for Logto
Logto users are mid-integration most of the time and frequently bouncing between the docs and an AI assistant for help wiring up SDKs, configuring connectors, or debugging custom JWT claims. A one-click handoff from a docs page to a clean markdown context drops a real friction point.
Production users
The plugin is already shipping on Ethereum execution-apis, Sui (Mysten Labs), Walrus, Seal, SuiNS, Monad, Flare, Kaia, Nillion, and Chronicle docs. ~10k npm installs/month.
Changes
docusaurus-plugin-copy-page-buttontodevDependenciespluginsarray indocusaurus.config.tsThe 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.