Example

Docs Site sitemap 示例

文档站的 sitemap 应该让 canonical 公共层级一眼可见。这个示例优先强调 docs home、setup、reference 和 policy 路径,而不是把每个低价值 archive 或参数变体都塞进去。

优先路径
Docs、Setup、Reference、Policy
避免内容
低价值 archive 噪音
最好搭配
Docs llms.txt 示例

Example file

一份文档站导向的 sitemap 结构

重点不在 XML 完美,而在于让重要 docs 层级更容易被发现。

Docs Site sitemap 示例
这是一个收紧后的示例,展示哪些 URL 应该得到清晰呈现。
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://example.com/docs</loc></url>
  <url><loc>https://example.com/docs/getting-started</loc></url>
  <url><loc>https://example.com/docs/setup</loc></url>
  <url><loc>https://example.com/docs/reference</loc></url>
  <url><loc>https://example.com/pricing</loc></url>
  <url><loc>https://example.com/privacy-policy</loc></url>
</urlset>

目标不是永远把 sitemap 做得很小,而是让 canonical 公开结构毫不含糊。

Why this shape helps

文档站 sitemap 应该突出什么

Docs home 和 setup 路径应该非常容易被发现。
当精确答案很重要时,reference 区域值得被明确列出来。
会影响 usage boundary 和 trust 的 pricing、policy 页面也应该在里面。
Archive-like 或 filtered 页面不该挤掉 canonical docs 结构。

Before you ship it

对照真实 docs 站点先核对什么

Canonical docs 路径
一个 docs index
没有过时重复页
setup 和 reference URL 清楚
站内一致性
internal links 一致
breadcrumbs 一致
标题与 canonical tags 一致
配套文件一致
robots.txt 指向这里
llms.txt 偏好同一组路径
重要 URL 保持公开

Related pages

Continue through the cluster

Next step

让 sitemap 强化已经干净的 docs 层级

如果 docs 结构本身还是碎的,先修结构。等层级稳定后,sitemap 才会成为强 discovery layer,而不是临时创可贴。