Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ The sitemap (`/gh-aw/sitemap-index.xml`) is **only generated during a production

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`.

### Robots/AI discovery paths on GitHub Pages project sites

This docs site is deployed as a GitHub Pages **project site** under `/gh-aw/` (see `base: '/gh-aw/'` in `astro.config.mjs`).

- `robots.txt` is served at `/gh-aw/robots.txt`
- AI discovery file is served at `/gh-aw/.well-known/ai.txt`
- AI metadata files are served under `/gh-aw/ai/`

Root-level endpoints on `https://github.github.com/` (for example `/robots.txt`) are controlled by the main `github.github.com` site, not this repository.

## Want to learn more?

Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat).
2 changes: 1 addition & 1 deletion docs/public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ Allow: /
User-agent: Diffbot
Allow: /

Sitemap: https://github.github.com/gh-aw/sitemap-index.xml
Sitemap: https://github.github.com/gh-aw/sitemap.xml
6 changes: 6 additions & 0 deletions docs/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://github.github.com/gh-aw/sitemap-index.xml</loc>
</sitemap>
</sitemapindex>