[PR #13224] feat(docs): add copy page markdown action to docs title #14568

Open
opened 2026-02-16 18:19:21 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13224

State: open
Merged: No


Summary

Adds a "Copy page as Markdown" action button to the docs page title area, allowing users to copy the full page content as Markdown to their clipboard.

Closes #6453

Changes

  • New PageTitle.astro component with copy-to-clipboard functionality
  • Astro config updated to integrate the component override
  • i18n strings added for all 18 supported locales (copyPage.button, copyPage.success, copyPage.error)
image image image (i can also change it to hide on mobile if you prefer)

Testing

  1. Run docs locally: bun run --cwd packages/web dev
  2. Visit http://localhost:4321
  3. Navigate to any docs page and verify the copy button appears next to the page title
  4. Click the button and paste into a text editor — should contain the page's Markdown content
  5. Verify the success/error tooltip feedback appears
  6. Test with different locales if possible
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13224 **State:** open **Merged:** No --- ## Summary Adds a "Copy page as Markdown" action button to the docs page title area, allowing users to copy the full page content as Markdown to their clipboard. Closes #6453 ### Changes - New `PageTitle.astro` component with copy-to-clipboard functionality - Astro config updated to integrate the component override - i18n strings added for all 18 supported locales (`copyPage.button`, `copyPage.success`, `copyPage.error`) <img width="1489" height="372" alt="image" src="https://github.com/user-attachments/assets/bba5781e-45d3-473b-9b87-8b17adc468ad" /> <img width="899" height="244" alt="image" src="https://github.com/user-attachments/assets/5c65ae6c-245d-49cf-8e63-9e48797737b1" /> <img width="423" height="869" alt="image" src="https://github.com/user-attachments/assets/61bf1a90-935a-4e09-9e05-5eedd5f3c067" /> (i can also change it to hide on mobile if you prefer) ### Testing 1. Run docs locally: `bun run --cwd packages/web dev` 2. Visit `http://localhost:4321` 3. Navigate to any docs page and verify the copy button appears next to the page title 4. Click the button and paste into a text editor — should contain the page's Markdown content 5. Verify the success/error tooltip feedback appears 6. Test with different locales if possible
yindo added the pull-request label 2026-02-16 18:19:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14568