Skip to content

feat(docs): improve SEO across docs site#1561

Open
nicolai-rhesis wants to merge 2 commits intomainfrom
feat/docs-seo-improvements
Open

feat(docs): improve SEO across docs site#1561
nicolai-rhesis wants to merge 2 commits intomainfrom
feat/docs-seo-improvements

Conversation

@nicolai-rhesis
Copy link
Copy Markdown
Member

Purpose

Address SEO issues found during an audit of the docs site.

What Changed

Bug fixes

  • Robots conflictgeneratePageMetadata previously hardcoded robots: { index: true } on every MDX page, ignoring the ROBOTS_NOINDEX env var used by the root layout. Staging/preview deployments are now correctly noindexed.
  • Sitemap lastModified — was always new Date() (today). Now uses real file mtime via fs.statSync, so crawlers only re-fetch pages that actually changed.

Enhancements

  • Page-level keywordsgeneratePageMetadata now reads keywords from MDX frontmatter and merges them with the sitewide defaults (deduplicated). Previously every page had identical keywords.
  • Explicit frontmatter on top 10 pages — added title, description, and keywords to the highest-traffic pages so search snippets are controlled rather than auto-extracted:
    • docs/index (Welcome)
    • docs/getting-started
    • docs/getting-started/connecting-application
    • docs/concepts
    • docs/tracing
    • docs/endpoints
    • docs/test-execution
    • guides/index
    • sdk/installation
    • sdk/client

Testing

  • Build passes locally
  • Visit any of the above pages and inspect <head> to verify correct <title>, <meta name="description">, and <meta name="keywords">

- Fix robots meta to respect ROBOTS_NOINDEX env var on all MDX routes
- Fix sitemap lastModified to use real file mtimes instead of new Date()
- Support page-level keywords in frontmatter merged with sitewide defaults
- Add explicit title/description/keywords frontmatter to top 10 pages:
  docs/index, getting-started, connecting-application, concepts,
  tracing, endpoints, test-execution, guides/index,
  sdk/installation, sdk/client
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