Skip to content

Commit 7ad7113

Browse files
ghostdevvdelucis
andauthored
docs: add robots.txt for sitemap (#2083)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
1 parent 41506e5 commit 7ad7113

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/src/assets/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://starlight.astro.build/sitemap-index.xml

docs/src/content/docs/guides/customization.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ export default defineConfig({
107107
});
108108
```
109109

110+
Learn how to [add a sitemap link to `robots.txt`](https://docs.astro.build/en/guides/integrations-guide/sitemap/#sitemap-link-in-robotstxt) in the Astro Docs.
111+
110112
## Page layout
111113

112114
By default, Starlight pages use a layout with a global navigation sidebar and a table of contents that shows the current page headings.

0 commit comments

Comments
 (0)