router icon indicating copy to clipboard operation
router copied to clipboard

docs: add sitemap generation section to static prerendering guide

Open morinokami opened this issue 1 month ago β€’ 3 comments

Although sitemap generation was added in https://github.com/TanStack/router/pull/4217, there doesn't seem to be any related documentation, so I added it.

Summary by CodeRabbit

  • Documentation
    • Added sitemap generation section to the static prerendering guide, including configuration examples and per-page customization options for controlling sitemap output.

✏️ Tip: You can customize this high-level summary in your review settings.

morinokami avatar Dec 07 '25 11:12 morinokami

Walkthrough

Documentation added to the static prerendering guide introducing sitemap generation capabilities in TanStack Start. Includes configuration examples, per-page override options, and documentation of available sitemap configuration fields (host, enabled, outputPath, exclude, priority, changefreq, lastmod, alternateRefs, images, news).

Changes

Cohort / File(s) Summary
Documentation: Sitemap Generation
docs/start/framework/react/guide/static-prerendering.md
Added new "Sitemap Generation" section documenting TanStack Start sitemap feature with configuration examples, per-page customization options, and available sitemap fields

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Pure documentation addition with no code logic to validate
  • Straightforward configuration examples and field documentation
  • No functional changes or complex interactions to review

Poem

🐰 A map of the web, both grand and small,
Drawn up for crawlers, guides for all,
Sitemaps now documented bright,
TanStack Start configured right! ✨

Pre-merge checks and finishing touches

βœ… Passed checks (3 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check βœ… Passed The pull request title accurately describes the main change: adding documentation for sitemap generation to the static prerendering guide. It is specific, concise, and directly related to the changeset.
Docstring Coverage βœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
πŸ§ͺ Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

πŸ“œ Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between bfbe75cfd8620b19de9894af72aa7a5766e6b89f and 93b8188f27c9ef5ef9519672c4e9fe2dc68168bd.

πŸ“’ Files selected for processing (1)
  • docs/start/framework/react/guide/static-prerendering.md (1 hunks)
🧰 Additional context used
πŸ““ Path-based instructions (1)
docs/**/*.{md,mdx}

πŸ“„ CodeRabbit inference engine (AGENTS.md)

Use relative links to docs/ folder format (e.g., ./guide/data-loading) for internal documentation references

Files:

  • docs/start/framework/react/guide/static-prerendering.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Preview
πŸ”‡ Additional comments (3)
docs/start/framework/react/guide/static-prerendering.md (3)

89-103: LGTM!

The section introduction and initial configuration example are clear and well-positioned. The required host option is properly documented inline.


105-128: LGTM!

The per-page configuration example effectively demonstrates both exclusion and customization patterns using the existing pages config structure. The examples are practical and easy to follow.


130-144: LGTM!

The option documentation is complete and follows the established documentation style. All mentioned fields are properly listed with clear descriptions. The changefreq option helpfully enumerates valid values.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Dec 07 '25 11:12 coderabbitai[bot]

View your CI Pipeline Execution β†— for commit 93b8188f27c9ef5ef9519672c4e9fe2dc68168bd

Command Status Duration Result
nx run-many --target=build --exclude=examples/*... βœ… Succeeded 4s View β†—
nx affected --targets=test:eslint,test:unit,tes... βœ… Succeeded <1s View β†—

☁️ Nx Cloud last updated this comment at 2025-12-07 11:50:51 UTC

nx-cloud[bot] avatar Dec 07 '25 11:12 nx-cloud[bot]

More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/arktype-adapter@6038
@tanstack/directive-functions-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/directive-functions-plugin@6038
@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/eslint-plugin-router@6038
@tanstack/history

npm i https://pkg.pr.new/TanStack/router/@tanstack/history@6038
@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/nitro-v2-vite-plugin@6038
@tanstack/react-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router@6038
@tanstack/react-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-devtools@6038
@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-ssr-query@6038
@tanstack/react-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start@6038
@tanstack/react-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-client@6038
@tanstack/react-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-server@6038
@tanstack/router-cli

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-cli@6038
@tanstack/router-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-core@6038
@tanstack/router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools@6038
@tanstack/router-devtools-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools-core@6038
@tanstack/router-generator

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-generator@6038
@tanstack/router-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-plugin@6038
@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-ssr-query-core@6038
@tanstack/router-utils

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-utils@6038
@tanstack/router-vite-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-vite-plugin@6038
@tanstack/server-functions-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/server-functions-plugin@6038
@tanstack/solid-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router@6038
@tanstack/solid-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-devtools@6038
@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-ssr-query@6038
@tanstack/solid-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start@6038
@tanstack/solid-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-client@6038
@tanstack/solid-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-server@6038
@tanstack/start-client-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-client-core@6038
@tanstack/start-plugin-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-plugin-core@6038
@tanstack/start-server-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-server-core@6038
@tanstack/start-static-server-functions

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-static-server-functions@6038
@tanstack/start-storage-context

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-storage-context@6038
@tanstack/valibot-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/valibot-adapter@6038
@tanstack/virtual-file-routes

npm i https://pkg.pr.new/TanStack/router/@tanstack/virtual-file-routes@6038
@tanstack/vue-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router@6038
@tanstack/vue-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router-devtools@6038
@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router-ssr-query@6038
@tanstack/zod-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/zod-adapter@6038

commit: 93b8188

pkg-pr-new[bot] avatar Dec 07 '25 11:12 pkg-pr-new[bot]