]> git.proxmox.com Git - rustc.git/commitdiff
use local css for not_found.html as well
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 25 Mar 2020 07:56:15 +0000 (08:56 +0100)
committerXimin Luo <infinity0@debian.org>
Sat, 4 Apr 2020 00:15:14 +0000 (01:15 +0100)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/patches/d-use-local-css.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/d-use-local-css.patch b/debian/patches/d-use-local-css.patch
new file mode 100644 (file)
index 0000000..167d1ff
--- /dev/null
@@ -0,0 +1,22 @@
+diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs
+index 204056598..4b65359b2 100644
+--- a/src/bootstrap/doc.rs
++++ b/src/bootstrap/doc.rs
+@@ -324,15 +324,11 @@ impl Step for Standalone {
+                 .arg(&builder.src.join("src/doc/index.md"))
+                 .arg("--markdown-playground-url")
+                 .arg("https://play.rust-lang.org/")
++                .arg("--markdown-css")
++                .arg("rust.css")
+                 .arg("-o")
+                 .arg(&out)
+                 .arg(&path);
+-
+-            if filename == "not_found.md" {
+-                cmd.arg("--markdown-css").arg("https://doc.rust-lang.org/rust.css");
+-            } else {
+-                cmd.arg("--markdown-css").arg("rust.css");
+-            }
+             builder.run(&mut cmd);
+         }
+     }
index 6233216411f165d2cf567cb08f002f4a3fe9eb66..d1ef04ec42053ce2d35121dd779b03a536754155 100644 (file)
@@ -39,3 +39,4 @@ d-fix-mips64el-bootstrap.patch
 
 # Work around for some porterboxes, keep this commented
 #d-host-duplicates.patch
+d-use-local-css.patch