[PR #3423] [MERGED] feat: add LLM copy button and view options components #21714

Closed
opened 2026-04-15 20:33:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3423
Author: @RobiMez
Created: 7/17/2025
Status: Merged
Merged: 7/17/2025
Merged by: @Bekacru

Base: mainHead: feat/better-llms.txt-integration


📝 Commits (3)

📊 Changes

7 files changed (+277 additions, -36 deletions)

View changed files

.gitattributes (+1 -0)
docs/app/docs/[[...slug]]/page.client.tsx (+193 -0)
📝 docs/app/docs/[[...slug]]/page.tsx (+8 -0)
docs/app/docs/lib/get-llm-text.ts (+40 -0)
docs/app/llms.txt/[...slug]/route.ts (+21 -0)
📝 docs/app/llms.txt/route.ts (+6 -36)
📝 docs/next.config.mjs (+8 -0)

📄 Description

  • update routing for LLM text generation, adding .mdx to a route now generates its .md repsresentation
  • add rewrite from /docs/:path*mdx to /llms.txt/:path so ai can traverse the llms.txt as routes

Summary by cubic

Added an LLM copy button and view options to docs pages, and updated routing so that visiting a .mdx path returns its Markdown representation for LLMs.

  • New Features
    • Added a "Copy Markdown" button and a menu to open docs in ChatGPT, Claude, T3 Chat, or GitHub.
    • Visiting /docs/:path.mdx now returns Markdown via a new /llms.txt/:path route, with a rewrite for easy access.

🔄 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/3423 **Author:** [@RobiMez](https://github.com/RobiMez) **Created:** 7/17/2025 **Status:** ✅ Merged **Merged:** 7/17/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/better-llms.txt-integration` --- ### 📝 Commits (3) - [`761b10d`](https://github.com/better-auth/better-auth/commit/761b10d7811f102aef248fb064be3e03977ac68e) feat: add LLM copy button and view options components - [`d6886e9`](https://github.com/better-auth/better-auth/commit/d6886e9d85eb02ad9352f6876ac0a094ec8cf282) chore: lint - [`3b0565d`](https://github.com/better-auth/better-auth/commit/3b0565d5346270efda68e56a5cf66d437d9592a4) chore: cubic ### 📊 Changes **7 files changed** (+277 additions, -36 deletions) <details> <summary>View changed files</summary> ➕ `.gitattributes` (+1 -0) ➕ `docs/app/docs/[[...slug]]/page.client.tsx` (+193 -0) 📝 `docs/app/docs/[[...slug]]/page.tsx` (+8 -0) ➕ `docs/app/docs/lib/get-llm-text.ts` (+40 -0) ➕ `docs/app/llms.txt/[...slug]/route.ts` (+21 -0) 📝 `docs/app/llms.txt/route.ts` (+6 -36) 📝 `docs/next.config.mjs` (+8 -0) </details> ### 📄 Description - update routing for LLM text generation, adding .mdx to a route now generates its .md repsresentation - add rewrite from /docs/:path*mdx to /llms.txt/:path so ai can traverse the llms.txt as routes <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added an LLM copy button and view options to docs pages, and updated routing so that visiting a .mdx path returns its Markdown representation for LLMs. - **New Features** - Added a "Copy Markdown" button and a menu to open docs in ChatGPT, Claude, T3 Chat, or GitHub. - Visiting /docs/:path.mdx now returns Markdown via a new /llms.txt/:path route, with a rewrite for easy access. <!-- End of auto-generated description by cubic. --> --- <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 20:33:18 -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#21714