Skip to content

Commit 2908dad

Browse files
authored
Unrolled build for #139593
Rollup merge of #139593 - lolbinarycat:sitemap, r=jieyouxu add sitemap to rust docs attempt to mitigate #104670
2 parents fefce3c + bebaa8a commit 2908dad

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ impl Step for Docs {
8888
tarball.set_product_name("Rust Documentation");
8989
tarball.add_bulk_dir(builder.doc_out(host), dest);
9090
tarball.add_file(builder.src.join("src/doc/robots.txt"), dest, FileType::Regular);
91+
tarball.add_file(builder.src.join("src/doc/sitemap.txt"), dest, FileType::Regular);
9192
Some(tarball.generate())
9293
}
9394

src/doc/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ Disallow: /beta/book/first-edition/
99
Disallow: /beta/book/second-edition/
1010
Disallow: /nightly/book/first-edition/
1111
Disallow: /nightly/book/second-edition/
12+
13+
Sitemap: https://doc.rust-lang.org/sitemap.txt

src/doc/sitemap.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://doc.rust-lang.org/stable/
2+
https://doc.rust-lang.org/beta/
3+
https://doc.rust-lang.org/nightly/
4+

0 commit comments

Comments
 (0)