about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-29 19:39:36 +0200
committerGitHub <noreply@github.com>2020-04-29 19:39:36 +0200
commit3286436e32a92c77f7b88cb329ae4195afdcffc6 (patch)
treed82dec17b432062f46ee77adaf7cb61c8ec106a0
parent75561a56ac57c47762b5ddddf7bb2e6798d98e7c (diff)
parentd6336dfe01744209b1aa0987c0a7a6c1d79a8ff4 (diff)
downloadrust-3286436e32a92c77f7b88cb329ae4195afdcffc6.tar.gz
rust-3286436e32a92c77f7b88cb329ae4195afdcffc6.zip
Rollup merge of #71678 - ehuss:rustc-doc-index, r=Mark-Simulacrum
Add an index page for nightly rustc docs.

This adds an `index.html` page at the root of the nightly-rustc docs so that the URL https://doc.rust-lang.org/nightly/nightly-rustc/ should have a landing page that lists all the crates.
-rw-r--r--src/bootstrap/doc.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs
index fc217a707db..7eab92ddc92 100644
--- a/src/bootstrap/doc.rs
+++ b/src/bootstrap/doc.rs
@@ -478,7 +478,11 @@ impl Step for Rustc {
 
         // Build cargo command.
         let mut cargo = builder.cargo(compiler, Mode::Rustc, target, "doc");
-        cargo.env("RUSTDOCFLAGS", "--document-private-items");
+        cargo.env(
+            "RUSTDOCFLAGS",
+            "--document-private-items \
+            --enable-index-page -Zunstable-options",
+        );
         compile::rustc_cargo(builder, &mut cargo, target);
 
         // Only include compiler crates, no dependencies of those, such as `libc`.