-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] Add proper robots.txt and sitemap.xml to index only latest and…
… stable (#1752) Solution proposed here: https://stackoverflow.com/questions/63542354/readthedocs-robots-txt-and-sitemap-xml --------- Co-authored-by: Jay Chia <[email protected]@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
User-agent: * | ||
|
||
# Allow crawling of all paths | ||
Allow: / | ||
|
||
# Override to disallow crawling of documentation | ||
Disallow: /projects/docs/ | ||
|
||
# Override again to allow crawling of /latest documentation | ||
Allow: /projects/docs/en/latest/ | ||
|
||
# Override again to allow crawling of /stable documentation | ||
Allow: /projects/docs/en/stable/ | ||
|
||
# Custom sitemap | ||
Sitemap: https://www.getdaft.io/sitemap-override.xml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | ||
xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
<url> | ||
<loc>https://www.getdaft.io/projects/docs/en/latest/</loc> | ||
<changefreq>daily</changefreq> | ||
<priority>1</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.getdaft.io/projects/docs/en/stable/</loc> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.9</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.getdaft.io/</loc> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
</urlset> |
This file contains 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