Skip to content

Commit 1486a39

Browse files
committed
add sitemap and robots.txt
1 parent f342ad9 commit 1486a39

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

settings/seo.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ You can preview how your meta tags will appear on different platforms using [met
138138
}
139139
```
140140

141-
## Sitemaps
141+
## Sitemaps and robots.txt files
142142

143-
Mintlify automatically generates a `sitemap.xml` file and a `robots.txt` file. Simply navigate to `/sitemap.xml` to see your sitemap.
143+
Mintlify automatically generates a `sitemap.xml` file and a `robots.txt` file. You can view your sitemap by appending `/sitemap.xml` to your documentation site's URL.
144144

145145
Only pages included in your `docs.json` are included by default. To include hidden links, add `seo.indexing` to your `docs.json`:
146146

@@ -150,6 +150,10 @@ Only pages included in your `docs.json` are included by default. To include hidd
150150
}
151151
```
152152

153+
### Custom sitemaps and robots.txt files
154+
155+
To add a custom `sitemap.xml` or `robots.txt` file, create a `sitemap.xml` or `robots.txt` file at the root of your project. Adding a custom file will override the automatically generated file of the same name. If you delete a custom file, the default file will be used again.
156+
153157
## Disabling indexing
154158

155159
If you want to stop a page from being indexed by search engines, you can include the following in the [frontmatter](pages) of your page:

0 commit comments

Comments
 (0)