mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
Exclude old book redirect stubs from search engines
This commit is contained in:
@@ -331,7 +331,7 @@ fn invoke_rustdoc(
|
||||
|
||||
let path = builder.src.join("src/doc").join(markdown);
|
||||
|
||||
let favicon = builder.src.join("src/doc/favicon.inc");
|
||||
let header = builder.src.join("src/doc/redirect.inc");
|
||||
let footer = builder.src.join("src/doc/footer.inc");
|
||||
let version_info = out.join("version_info.html");
|
||||
|
||||
@@ -341,7 +341,7 @@ fn invoke_rustdoc(
|
||||
|
||||
cmd.arg("--html-after-content").arg(&footer)
|
||||
.arg("--html-before-content").arg(&version_info)
|
||||
.arg("--html-in-header").arg(&favicon)
|
||||
.arg("--html-in-header").arg(&header)
|
||||
.arg("--markdown-no-toc")
|
||||
.arg("--markdown-playground-url")
|
||||
.arg("https://play.rust-lang.org/")
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<meta name="robots" content="noindex,follow">
|
||||
<link rel="shortcut icon" href="https://www.rust-lang.org/favicon.ico">
|
||||
Reference in New Issue
Block a user