Skip to content

Add full AI crawler allow-list to docs site robots.txt - #49820

Merged
pelikhan merged 2 commits into
mainfrom
copilot/geo-optimizer-add-robots-txt-another-one
Aug 2, 2026
Merged

Add full AI crawler allow-list to docs site robots.txt#49820
pelikhan merged 2 commits into
mainfrom
copilot/geo-optimizer-add-robots-txt-another-one

Conversation

Copilot AI commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

The docs site already served /gh-aw/robots.txt, but it was missing part of the requested AI crawler allow-list and advertised sitemap-index.xml instead of the stable sitemap.xml entrypoint. This aligns the docs-site crawler policy with the GEO issue requirements and the expected GitHub Pages sitemap path.

  • Robots policy

    • Expand /docs/public/robots.txt to include the full requested AI crawler allow-list
    • Replace the sitemap directive with https://github.github.com/gh-aw/sitemap.xml
  • Docs-site regression coverage

    • Update docs/tests/robots-txt.spec.ts to assert the exact served robots.txt contents, including the added crawler entries and new sitemap directive
  • Docs note

    • Refresh docs/README.md to describe sitemap.xml as the stable crawler-facing entrypoint and clarify its relationship to the generated sitemap-index.xml
User-agent: ClaudeBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: claude-web
Allow: /

Sitemap: https://github.github.com/gh-aw/sitemap.xml

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add robots.txt with AI-bot Allow rules to docs site Add full AI crawler allow-list to docs site robots.txt Aug 2, 2026
Copilot AI requested a review from pelikhan August 2, 2026 16:57
@pelikhan
pelikhan marked this pull request as ready for review August 2, 2026 17:02
Copilot AI review requested due to automatic review settings August 2, 2026 17:02
@pelikhan
pelikhan merged commit 57e303a into main Aug 2, 2026
@pelikhan
pelikhan deleted the copilot/geo-optimizer-add-robots-txt-another-one branch August 2, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Expands the docs crawler allow-list and updates sitemap discovery guidance.

Changes:

  • Adds the requested AI crawler directives.
  • Points robots metadata to sitemap.xml.
  • Updates regression coverage and documentation.
Show a summary per file
File Description
docs/public/robots.txt Expands crawler rules and updates sitemap URL.
docs/tests/robots-txt.spec.ts Updates expected robots content.
docs/README.md Documents sitemap behavior.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Balanced

Comment thread docs/public/robots.txt
Allow: /

Sitemap: https://github.github.com/gh-aw/sitemap-index.xml
Sitemap: https://github.github.com/gh-aw/sitemap.xml
Comment thread docs/README.md
The robots file references `/gh-aw/sitemap.xml`, which is the stable sitemap entrypoint for the docs site.

If a CI pipeline or automated tool checks for the sitemap URL during a local preview, it will receive a 404 response. To verify the sitemap, run `npm run build` followed by `npm run preview`.
During a production build (`npm run build`), Astro generates `/gh-aw/sitemap-index.xml`, and the static `/gh-aw/sitemap.xml` entrypoint points crawlers at that generated sitemap index. The generated sitemap index is not available when running the local development server (`npm run dev`).
Comment thread docs/README.md
If a CI pipeline or automated tool checks for the sitemap URL during a local preview, it will receive a 404 response. To verify the sitemap, run `npm run build` followed by `npm run preview`.
During a production build (`npm run build`), Astro generates `/gh-aw/sitemap-index.xml`, and the static `/gh-aw/sitemap.xml` entrypoint points crawlers at that generated sitemap index. The generated sitemap index is not available when running the local development server (`npm run dev`).

If a CI pipeline or automated tool checks the generated sitemap index URL during a local preview, it will receive a 404 response. To verify the production sitemap flow, run `npm run build` followed by `npm run preview`.
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.3

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.

[geo-optimizer] Add robots.txt with AI-bot Allow rules to docs site

3 participants