Skip to content

Add docusaurus-plugin-copy-page-button for AI-friendly docs#1400

Open
portdeveloper wants to merge 1 commit intologto-io:masterfrom
portdeveloper:add-copy-page-button-plugin
Open

Add docusaurus-plugin-copy-page-button for AI-friendly docs#1400
portdeveloper wants to merge 1 commit intologto-io:masterfrom
portdeveloper:add-copy-page-button-plugin

Conversation

@portdeveloper
Copy link
Copy Markdown

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

  • Adds docusaurus-plugin-copy-page-button to devDependencies
  • Adds the plugin string to the plugins array in docusaurus.config.ts

The 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.

Adds a 'Copy page' button to the docs sidebar that exports the page as
clean markdown for use with ChatGPT, Claude, and Gemini.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant