From a2df4131871b6d18e1d3d2913d7a4436cd0d0277 Mon Sep 17 00:00:00 2001 From: projektir Date: Fri, 1 Dec 2017 18:29:12 -0800 Subject: [PATCH] Adding RBE as a submodule #46194 --- .gitmodules | 3 +++ src/bootstrap/builder.rs | 2 +- src/bootstrap/doc.rs | 3 ++- src/doc/rust-by-example | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) create mode 160000 src/doc/rust-by-example diff --git a/.gitmodules b/.gitmodules index 373ca90eca128..ffa7b321ba6b6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -48,3 +48,6 @@ [submodule "src/binaryen"] path = src/binaryen url = https://github.com/alexcrichton/binaryen.git +[submodule "src/doc/rust-by-example"] + path = src/doc/rust-by-example + url = https://github.com/rust-lang/rust-by-example diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index ce30d1f4cec42..752c9e3f44aae 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -258,7 +258,7 @@ impl<'a> Builder<'a> { Kind::Bench => describe!(check::Crate, check::CrateLibrustc), Kind::Doc => describe!(doc::UnstableBook, doc::UnstableBookGen, doc::TheBook, doc::Standalone, doc::Std, doc::Test, doc::Rustc, doc::ErrorIndex, doc::Nomicon, - doc::Reference, doc::Rustdoc, doc::CargoBook), + doc::Reference, doc::Rustdoc, doc::RustByExample, doc::CargoBook), Kind::Dist => describe!(dist::Docs, dist::Mingw, dist::Rustc, dist::DebuggerScripts, dist::Std, dist::Analysis, dist::Src, dist::PlainSourceTarball, dist::Cargo, dist::Rls, dist::Rustfmt, dist::Extended, dist::HashSign, diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index 832da24c994db..4227567cfcf27 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -12,7 +12,7 @@ //! //! This module implements generation for all bits and pieces of documentation //! for the Rust project. This notably includes suites like the rust book, the -//! nomicon, standalone documentation, etc. +//! nomicon, rust by example, standalone documentation, etc. //! //! Everything here is basically just a shim around calling either `rustbook` or //! `rustdoc`. @@ -69,6 +69,7 @@ book!( Nomicon, "src/doc/nomicon", "nomicon"; Reference, "src/doc/reference", "reference"; Rustdoc, "src/doc/rustdoc", "rustdoc"; + RustByExample, "src/doc/rust-by-example", "rust-by-example"; ); #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] diff --git a/src/doc/rust-by-example b/src/doc/rust-by-example new file mode 160000 index 0000000000000..4ebb8169dfe56 --- /dev/null +++ b/src/doc/rust-by-example @@ -0,0 +1 @@ +Subproject commit 4ebb8169dfe569b3dcbeab560607800bb717978a