Skip to content

Commit 65cc839

Browse files
committed
build both editions of the book
1 parent cc56c7d commit 65cc839

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/bootstrap/doc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ pub fn rustbook(build: &Build, target: &str, name: &str) {
5353
.arg(out));
5454
}
5555

56+
pub fn book(build: &Build, target: &str, name: &str) {
57+
rustbook(build, target, &format!("{}/first-edition", name));
58+
rustbook(build, target, &format!("{}/second-edition", name));
59+
}
60+
5661
/// Generates all standalone documentation as compiled by the rustdoc in `stage`
5762
/// for the `target` into `out`.
5863
///

src/bootstrap/step.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
581581
.stage(0)
582582
})
583583
.default(build.config.docs)
584-
.run(move |s| doc::rustbook(build, s.target, "book"));
584+
.run(move |s| doc::book(build, s.target, "book"));
585585
rules.doc("doc-nomicon", "src/doc/nomicon")
586586
.dep(move |s| {
587587
s.name("tool-rustbook")

0 commit comments

Comments
 (0)