Install robots.txt into rust-docs tarballs

This commit is contained in:
Mark Rousskov 2020-01-30 15:24:56 -05:00
parent edb3684915
commit 39e502744c
2 changed files with 1 additions and 1 deletions

View File

@ -105,6 +105,7 @@ impl Step for Docs {
t!(fs::create_dir_all(&dst));
let src = builder.doc_out(host);
builder.cp_r(&src, &dst);
builder.install(&builder.src.join("src/doc/robots.txt"), &dst, 0o644);
let mut cmd = rust_installer(builder);
cmd.arg("generate")

View File

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