Add full AI crawler allow-list to docs site robots.txt - #49820
Merged
Conversation
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
pelikhan
marked this pull request as ready for review
August 2, 2026 17:02
Contributor
There was a problem hiding this comment.
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
| Allow: / | ||
|
|
||
| Sitemap: https://github.github.com/gh-aw/sitemap-index.xml | ||
| Sitemap: https://github.github.com/gh-aw/sitemap.xml |
| 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`). |
| 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`. |
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The docs site already served
/gh-aw/robots.txt, but it was missing part of the requested AI crawler allow-list and advertisedsitemap-index.xmlinstead of the stablesitemap.xmlentrypoint. This aligns the docs-site crawler policy with the GEO issue requirements and the expected GitHub Pages sitemap path.Robots policy
/docs/public/robots.txtto include the full requested AI crawler allow-listhttps://github.github.com/gh-aw/sitemap.xmlDocs-site regression coverage
docs/tests/robots-txt.spec.tsto assert the exact servedrobots.txtcontents, including the added crawler entries and new sitemap directiveDocs note
docs/README.mdto describesitemap.xmlas the stable crawler-facing entrypoint and clarify its relationship to the generatedsitemap-index.xml