[PR #8783] [MERGED] docs: add copy MD link button to view options dropdown #25109

Closed
opened 2026-04-15 22:43:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8783
Author: @FaryalRizwaan
Created: 3/26/2026
Status: Merged
Merged: 3/31/2026
Merged by: @ping-maxwell

Base: mainHead: feat/copy-md-link-button


📝 Commits (5)

📊 Changes

2 files changed (+30 additions, -1 deletions)

View changed files

📝 landing/app/docs/[[...slug]]/page.client.tsx (+29 -1)
📝 landing/app/docs/[[...slug]]/page.tsx (+1 -0)

📄 Description

Closes #8680

The raw MD URLs (/llms.txt/docs/<slug>.md) already existed but there was no way to copy them from the UI. This adds a "Copy MD Link" button to the "Open in" dropdown so users can grab the raw markdown URL for any doc page in one click.

Changes

  • New CopyMdLinkButton component added to page.client.tsx
  • rawMdUrl prop added to ViewOptions
  • URL built and passed down from page.tsx

Why

  • Easier to reference multiple doc pages when working with AI agents
  • No more manually constructing URLs or digging through GitHub raw files
Screenshot

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/8783 **Author:** [@FaryalRizwaan](https://github.com/FaryalRizwaan) **Created:** 3/26/2026 **Status:** ✅ Merged **Merged:** 3/31/2026 **Merged by:** [@ping-maxwell](https://github.com/ping-maxwell) **Base:** `main` ← **Head:** `feat/copy-md-link-button` --- ### 📝 Commits (5) - [`d453a7e`](https://github.com/better-auth/better-auth/commit/d453a7ec3af07d0c2e3b1f60fdf52b5d382152b8) feat(docs): add copy MD link button to view options dropdown (#8680) - [`2f6ac2d`](https://github.com/better-auth/better-auth/commit/2f6ac2dd4673785bb44d95b6503f250e6afc3e35) Merge branch 'main' into feat/copy-md-link-button - [`b76eddf`](https://github.com/better-auth/better-auth/commit/b76eddf7d8f7e5c7db512cac90375eb11795d56e) fix: return clipboard promise in CopyMdLinkButton - [`0b067dd`](https://github.com/better-auth/better-auth/commit/0b067dd3af3c0cb3b8b4add50394bb7148bf8b16) Merge branch 'feat/copy-md-link-button' of https://github.com/FaryalRizwaan/better-auth into feat/copy-md-link-button - [`fc088b3`](https://github.com/better-auth/better-auth/commit/fc088b36ada9aaa405abbc9773941d0bbb6ed77d) Merge branch 'main' into feat/copy-md-link-button ### 📊 Changes **2 files changed** (+30 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `landing/app/docs/[[...slug]]/page.client.tsx` (+29 -1) 📝 `landing/app/docs/[[...slug]]/page.tsx` (+1 -0) </details> ### 📄 Description Closes #8680 The raw MD URLs (`/llms.txt/docs/<slug>.md`) already existed but there was no way to copy them from the UI. This adds a "Copy MD Link" button to the "Open in" dropdown so users can grab the raw markdown URL for any doc page in one click. **Changes** - New `CopyMdLinkButton` component added to `page.client.tsx` - `rawMdUrl` prop added to `ViewOptions` - URL built and passed down from `page.tsx` **Why** - Easier to reference multiple doc pages when working with AI agents - No more manually constructing URLs or digging through GitHub raw files <img width="1919" height="871" alt="Screenshot" src="https://github.com/user-attachments/assets/301f944e-e26b-49fe-862d-9bf5c1d3561b" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:43:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25109