about summary refs log tree commit diff
path: root/src/rustbook/css.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2015-01-10 00:54:18 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2015-01-10 00:54:18 +1100
commitafe260ff4b9968300a4c64a4fd1ce903ddec0619 (patch)
treeb4a401ece2eee9540cad91cb0fcb10de5fac230a /src/rustbook/css.rs
parent6fc0ac5ee3611a094e9462d9b54468bf1d59fa21 (diff)
downloadrust-afe260ff4b9968300a4c64a4fd1ce903ddec0619.tar.gz
rust-afe260ff4b9968300a4c64a4fd1ce903ddec0619.zip
rustbook: use a relative @import path to ensure it works offline.
The URL previously caused the book to require an internet connection to
get the full styling, this should mean no internet is required.
Diffstat (limited to 'src/rustbook/css.rs')
-rw-r--r--src/rustbook/css.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustbook/css.rs b/src/rustbook/css.rs
index 8eb66e71d3a..92433589155 100644
--- a/src/rustbook/css.rs
+++ b/src/rustbook/css.rs
@@ -11,7 +11,7 @@
 // The rust-book CSS in string form.
 
 pub static STYLE: &'static str = r#"
-@import url("//static.rust-lang.org/doc/master/rust.css");
+@import url("../rust.css");
 
 body {
     max-width:none;