Skip to content

seo: derive sitemap dates from source history - #565

Merged
Ducksss merged 1 commit into
devfrom
seo/source-sitemap-dates
Sep 7, 2026
Merged

Ducksss merged 1 commit into
devfrom
seo/source-sitemap-dates

Conversation

@tin-computer

@tin-computer tin-computer Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • derive documentation sitemap dates from tracked MDX Git history
  • omit dates when source history is unavailable
  • keep blog frontmatter dates and undated marketing and template routes unchanged
  • document the source-of-truth rule and protect it with focused tests

Checks

  • corepack pnpm exec vitest run --config ./vitest.config.mts tests/int/fumadocs-site.int.spec.ts (37 passed)
  • corepack pnpm exec tsc --noEmit
  • corepack pnpm exec eslint source.config.ts src/app/sitemap.ts tests/int/fumadocs-site.int.spec.ts
  • corepack pnpm build:e2e (326 static pages)
  • full release gate reached 770 passed tests; two unrelated fixture tests failed and reproduced on clean dev

Production proof

The generated sitemap emits a Git-derived date for /docs/ai-discovery, preserves the blog frontmatter date, and omits the field for /templates/saas-launch.

Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
@tin-computer
tin-computer Bot requested a review from Ducksss as a code owner September 7, 2026 05:28
@vercel

vercel Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
payload-components Ready Ready Preview Sep 7, 2026 5:33am UTC
payload-components-97bf Ready Ready Preview Sep 7, 2026 5:33am UTC

@Ducksss Ducksss left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the complete diff and passing release checks. Documentation sitemap dates use Fumadocs Git-derived source metadata, missing dates are omitted, and blog/marketing/template behavior is preserved. Coverage checks both dated and undated documentation entries. No blocking findings.

@Ducksss
Ducksss merged commit c53d598 into dev Sep 7, 2026
11 checks passed
@Ducksss
Ducksss deleted the seo/source-sitemap-dates branch September 7, 2026 16:14

This branch was successfully deployed

2 active deployments
Preview – payload-components — 03465098 Deployed Sep 7, 2026 by vercel[bot]
Preview – payload-components-97bf — 03465098 Deployed Sep 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant