]> git.lizzy.rs Git - rust.git/commit
rustbook: Fix relative links on the Introduction page
authorNick Howell <howellnick@gmail.com>
Fri, 4 Sep 2015 21:00:33 +0000 (17:00 -0400)
committerNick Howell <howellnick@gmail.com>
Fri, 4 Sep 2015 21:00:33 +0000 (17:00 -0400)
commit0f0c48b0b10358427f23572096d117d07daa67cb
treea631936598300130a933e97017eb76a59c16d470
parent94ddfc77072d99b16a5cc779d2b1f8d69e0d6850
rustbook: Fix relative links on the Introduction page

The Introduction page generated by rustbook used weird relative links
like "./getting-started.html" instead of just "getting-started.html"
like on the other pages. This adversely affected Windows builds the
worst, since it generated links like ".\getting-started.html" (note the
backslash). If you then try to upload the generated book to a webserver,
you end up with 404's. See this example of what is going on with the
Introduction page links and why this PR should fix it:
http://is.gd/fRUTXk

Compare the links on these two pages, for instance:
https://doc.rust-lang.org/nightly/book/
https://doc.rust-lang.org/nightly/book/getting-started.html

Also, fix a few whitespace issues in build.rs.
src/rustbook/book.rs
src/rustbook/build.rs