Skip to content

Commit 95df2bc

Browse files
authored
Rollup merge of rust-lang#68678 - Mark-Simulacrum:robots, r=pietroalbini
Install robots.txt into rust-docs tarballs Fixes rust-lang#68677. I believe this might just work out from the central-station perspective, but even if it doesn't, this is a prerequisite step anyway.
2 parents bdd946d + 39e5027 commit 95df2bc

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/bootstrap/dist.rs

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ impl Step for Docs {
105105
t!(fs::create_dir_all(&dst));
106106
let src = builder.doc_out(host);
107107
builder.cp_r(&src, &dst);
108+
builder.install(&builder.src.join("src/doc/robots.txt"), &dst, 0o644);
108109

109110
let mut cmd = rust_installer(builder);
110111
cmd.arg("generate")

src/doc/robots.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# NB: This file is not automatically deployed. After changes, it needs to be uploaded manually to doc.rust-lang.org
21
User-agent: *
32
Disallow: /0.3/
43
Disallow: /0.4/

0 commit comments

Comments
 (0)