[PR #5605] [MERGED] docs: imporve llms.txt #31713

Closed
opened 2026-04-17 22:36:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5605
Author: @bytaesu
Created: 10/26/2025
Status: Merged
Merged: 10/27/2025
Merged by: @himself65

Base: canaryHead: 2025-10-27/docs/improve-llms-txt


📝 Commits (2)

📊 Changes

3 files changed (+84 additions, -18 deletions)

View changed files

📝 docs/app/docs/lib/get-llm-text.ts (+3 -9)
📝 docs/app/llms.txt/[...slug]/route.ts (+15 -2)
📝 docs/app/llms.txt/route.ts (+66 -7)

📄 Description

Closes https://github.com/better-auth/better-auth/issues/5588

Before:

before

After:

after

Summary by cubic

Improved llms.txt by adding a categorized table of contents and cleaner per-page markdown, making docs easier to browse and consume.

  • New Features

    • Added a top-level llms.txt index with a category-based table of contents; excludes OpenAPI docs.
    • Formatted category names (Title Case) and linked entries to /llms.txt.md with optional descriptions.
    • Normalized per-page slugs by stripping .md and the optional docs prefix.
  • Refactors

    • Simplified getLLMText: removed category and raw source URL; now outputs title, optional description, and processed content.
    • Standardized responses to text/markdown using NextResponse.

🔄 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/5605 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 10/26/2025 **Status:** ✅ Merged **Merged:** 10/27/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2025-10-27/docs/improve-llms-txt` --- ### 📝 Commits (2) - [`02bd652`](https://github.com/better-auth/better-auth/commit/02bd652c94c75a8d4e08dd267eed0d0811b073ab) docs: imporve llms.txt - [`51ec8b4`](https://github.com/better-auth/better-auth/commit/51ec8b475e16fa53f770169d628b1b61ae2318a8) fix: lint ### 📊 Changes **3 files changed** (+84 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/docs/lib/get-llm-text.ts` (+3 -9) 📝 `docs/app/llms.txt/[...slug]/route.ts` (+15 -2) 📝 `docs/app/llms.txt/route.ts` (+66 -7) </details> ### 📄 Description Closes https://github.com/better-auth/better-auth/issues/5588 ### Before: <img width="1000" alt="before" src="https://github.com/user-attachments/assets/a94570b1-7bc4-4443-b2e3-fddbb5a3aa04" /> ### After: <img width="1000" alt="after" src="https://github.com/user-attachments/assets/4112d7ce-9f72-4650-b334-d567b99e98af" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Improved llms.txt by adding a categorized table of contents and cleaner per-page markdown, making docs easier to browse and consume. - **New Features** - Added a top-level llms.txt index with a category-based table of contents; excludes OpenAPI docs. - Formatted category names (Title Case) and linked entries to /llms.txt<doc-url>.md with optional descriptions. - Normalized per-page slugs by stripping .md and the optional docs prefix. - **Refactors** - Simplified getLLMText: removed category and raw source URL; now outputs title, optional description, and processed content. - Standardized responses to text/markdown using NextResponse. <!-- 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-17 22:36:03 -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#31713