Skip to content

Commit bebaa8a

Browse files
committed
add sitemap to rust docs
1 parent ae9173d commit bebaa8a

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
@@ -82,6 +82,7 @@ impl Step for Docs {
8282
tarball.set_product_name("Rust Documentation");
8383
tarball.add_bulk_dir(builder.doc_out(host), dest);
8484
tarball.add_file(builder.src.join("src/doc/robots.txt"), dest, FileType::Regular);
85+
tarball.add_file(builder.src.join("src/doc/sitemap.txt"), dest, FileType::Regular);
8586
Some(tarball.generate())
8687
}
8788
}

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)