mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
add sitemap to rust docs
This commit is contained in:
@@ -82,6 +82,7 @@ fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
|
||||
tarball.set_product_name("Rust Documentation");
|
||||
tarball.add_bulk_dir(builder.doc_out(host), dest);
|
||||
tarball.add_file(builder.src.join("src/doc/robots.txt"), dest, FileType::Regular);
|
||||
tarball.add_file(builder.src.join("src/doc/sitemap.txt"), dest, FileType::Regular);
|
||||
Some(tarball.generate())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,3 +9,5 @@ Disallow: /beta/book/first-edition/
|
||||
Disallow: /beta/book/second-edition/
|
||||
Disallow: /nightly/book/first-edition/
|
||||
Disallow: /nightly/book/second-edition/
|
||||
|
||||
Sitemap: https://doc.rust-lang.org/sitemap.txt
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
https://doc.rust-lang.org/stable/
|
||||
https://doc.rust-lang.org/beta/
|
||||
https://doc.rust-lang.org/nightly/
|
||||
|
||||
Reference in New Issue
Block a user