Skip to content

Conversation

@Himess
Copy link

@Himess Himess commented Jan 6, 2026

Summary

Closes #114

Adds a "Copy page" button to documentation pages that copies content as clean markdown.

Changes

  • New CopyPageButton component in src/components/
  • Swizzled DocItem/Layout to include the button
  • Button styled with primary color, positioned top-right
  • Converts HTML to markdown preserving formatting

Screenshots

Button appears in top-right corner of doc pages. Clicking copies page content and shows "Copied!" feedback.

Himess and others added 2 commits January 6, 2026 22:40
Add a button that allows users to copy the entire page content
as clean markdown text. The button appears in the top-right
corner of each documentation page.

Features:
- Converts HTML content to markdown format
- Preserves headings, code blocks, lists, and tables
- Shows visual feedback when content is copied
- Responsive design with primary color styling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add copy page button to documentation

1 participant