#13224 · @kdcokenny · opened Feb 11, 2026 at 11:17 PM UTC · last updated Mar 21, 2026 at 11:12 AM UTC
feat(docs): add copy page markdown action to docs title
Score breakdown
Impact
Clarity
Urgency
Ease Of Review
Guidelines
Readiness
Size
Trust
Traction
Summary
This PR adds a "Copy page as Markdown" action button to the documentation page titles. This new feature allows users to quickly copy the entire page content as Markdown to their clipboard, improving content reusability from the docs.
Description
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.astrocomponent 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)
Testing
- Run docs locally:
bun run --cwd packages/web dev - Visit
http://localhost:4321 - Navigate to any docs page and verify the copy button appears next to the page title
- Click the button and paste into a text editor — should contain the page's Markdown content
- Verify the success/error tooltip feedback appears
- Test with different locales if possible
Linked Issues
#6453 [FEATURE]: Add "Copy Page as Markdown" button to Docs
View issueComments
No comments.
Changed Files
packages/web/astro.config.mjs
+1−0packages/web/src/components/PageTitle.astro
+205−0packages/web/src/content/i18n/ar.json
+3−1packages/web/src/content/i18n/bs.json
+3−1packages/web/src/content/i18n/da.json
+3−1packages/web/src/content/i18n/de.json
+3−1packages/web/src/content/i18n/en.json
+3−1packages/web/src/content/i18n/es.json
+3−1packages/web/src/content/i18n/fr.json
+3−1packages/web/src/content/i18n/it.json
+3−1packages/web/src/content/i18n/ja.json
+3−1packages/web/src/content/i18n/ko.json
+3−1packages/web/src/content/i18n/nb.json
+3−1packages/web/src/content/i18n/pl.json
+3−1packages/web/src/content/i18n/pt-BR.json
+3−1packages/web/src/content/i18n/ru.json
+3−1packages/web/src/content/i18n/th.json
+3−1packages/web/src/content/i18n/tr.json
+3−1packages/web/src/content/i18n/zh-CN.json
+3−1packages/web/src/content/i18n/zh-TW.json
+3−1