Skip to content

docs: add robots.txt with sitemap for search indexing#620

Merged
wu-sheng merged 1 commit into
mainfrom
docs/enable-robots-txt
Jun 27, 2026
Merged

docs: add robots.txt with sitemap for search indexing#620
wu-sheng merged 1 commit into
mainfrom
docs/enable-robots-txt

Conversation

@wu-sheng

Copy link
Copy Markdown
Member

Make the docs site discoverable by search engines.

  • Enable enableRobotsTXT and add layouts/robots.txt that allows all crawlers and references the sitemap:
    User-agent: *
    Allow: /
    Sitemap: https://skyapm.github.io/SkyAPM-dotnet/sitemap.xml
    
  • sitemap.xml (16 URLs) is already auto-generated by Hugo; pages have no noindex.

For reliable/fast indexing, the site should also be added to Google Search Console (URL-prefix property) with the sitemap submitted — a one-time manual step.

🤖 Generated with Claude Code

Enable Hugo's robots.txt (enableRobotsTXT) and add a template that allows all
crawlers and points to the sitemap, so search engines can discover the docs
site. The sitemap.xml is already generated by Hugo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wu-sheng wu-sheng merged commit f3871dd into main Jun 27, 2026
1 check passed
@wu-sheng wu-sheng deleted the docs/enable-robots-txt branch June 27, 2026 16:37
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