[PR #8496] [MERGED] docs(sitemap): add sitemap for all pages, dynamically generating docs and blog routes #24915

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8496
Author: @0-Sandy
Created: 3/8/2026
Status: Merged
Merged: 3/12/2026
Merged by: @himself65

Base: canaryHead: add-sitemap


📝 Commits (5)

  • b4795be docs(sitemap): add sitemap for all pages, dynamically generating docs and blog routes
  • 61d5234 style: format code
  • 1b68e95 fix: use the same code as old docs
  • c8c9a6b fix: fix paths
  • 6540862 add products route and remove unused comment

📊 Changes

1 file changed (+72 additions, -0 deletions)

View changed files

landing/app/sitemap.ts (+72 -0)

📄 Description

Added a sitemap for the docs site, covering all pages and dynamically generating routes for the docs and blog routes.


Summary by cubic

Adds a Next.js sitemap for the docs site that covers all pages, including dynamic docs and blog routes, and fixes path mismatches to improve SEO and indexing. Uses the same generation logic as the old docs.

  • New Features

    • New landing/app/sitemap.ts builds absolute URLs with BASE_URL and sets changeFrequency, priority, and lastModified.
    • Includes docs via source.getPages() and blog posts via blogs.getPages(), normalizing /blogs/* to /blog/*.
    • Adds base routes: /, /blog, /changelog, /community, /enterprise, /products/framework, /products/infrastructure.
  • Bug Fixes

    • Aligns sitemap structure and metadata with the old docs to avoid URL and date mismatches.
    • Corrects changelog path to /changelog.

Written for commit 65408624d4. Summary will update on new commits.


🔄 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/8496 **Author:** [@0-Sandy](https://github.com/0-Sandy) **Created:** 3/8/2026 **Status:** ✅ Merged **Merged:** 3/12/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `add-sitemap` --- ### 📝 Commits (5) - [`b4795be`](https://github.com/better-auth/better-auth/commit/b4795be58fedab9d06988c592cf7281d45a90c6c) docs(sitemap): add sitemap for all pages, dynamically generating docs and blog routes - [`61d5234`](https://github.com/better-auth/better-auth/commit/61d5234954dbf2e14adc5a8fdaad2ccedd87860d) style: format code - [`1b68e95`](https://github.com/better-auth/better-auth/commit/1b68e957b654fe131c16f1487393ff5628bfac2c) fix: use the same code as old docs - [`c8c9a6b`](https://github.com/better-auth/better-auth/commit/c8c9a6be82e88efb6e187467231f49bc10ce77b0) fix: fix paths - [`6540862`](https://github.com/better-auth/better-auth/commit/65408624d4508ad704160af6a90eb8b0599ac720) add products route and remove unused comment ### 📊 Changes **1 file changed** (+72 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `landing/app/sitemap.ts` (+72 -0) </details> ### 📄 Description Added a sitemap for the docs site, covering all pages and dynamically generating routes for the docs and blog routes. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a Next.js sitemap for the docs site that covers all pages, including dynamic docs and blog routes, and fixes path mismatches to improve SEO and indexing. Uses the same generation logic as the old docs. - **New Features** - New `landing/app/sitemap.ts` builds absolute URLs with `BASE_URL` and sets `changeFrequency`, `priority`, and `lastModified`. - Includes docs via `source.getPages()` and blog posts via `blogs.getPages()`, normalizing `/blogs/*` to `/blog/*`. - Adds base routes: `/`, `/blog`, `/changelog`, `/community`, `/enterprise`, `/products/framework`, `/products/infrastructure`. - **Bug Fixes** - Aligns sitemap structure and metadata with the old docs to avoid URL and date mismatches. - Corrects changelog path to `/changelog`. <sup>Written for commit 65408624d4508ad704160af6a90eb8b0599ac720. Summary will update on new commits.</sup> <!-- 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 22:37:46 -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#24915