Skip to content

Commit a948b48

Browse files
committed
---
yaml --- r: 82542 b: refs/heads/auto c: 80e0968 h: refs/heads/master v: v3
1 parent 257018c commit a948b48

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 03e5e9631567904e03ec61b698a1eeff1372125d
16+
refs/heads/auto: 80e096830dc4bd291597c904078fb0e60a09b2ec
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/mk/tools.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ RUSTPKG_INPUTS := $(wildcard $(S)src/librustpkg/*.rs)
2121

2222
# Rustdoc, the documentation tool
2323
RUSTDOC_LIB := $(S)src/librustdoc/rustdoc.rs
24-
RUSTDOC_INPUTS := $(wildcard $(S)src/librustdoc/*.rs)
24+
RUSTDOC_INPUTS := $(wildcard $(addprefix $(S)src/librustdoc/, \
25+
*.rs */*.rs */*/*.rs))
2526

2627
# Rusti, the JIT REPL
2728
RUSTI_LIB := $(S)src/librusti/rusti.rs

branches/auto/src/librustdoc/html/layout.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn render<T: fmt::Default, S: fmt::Default>(
3636
3737
<link href='http://fonts.googleapis.com/css?family=Oswald:700|Inconsolata:400'
3838
rel='stylesheet' type='text/css'>
39-
<link rel=\"stylesheet\" type=\"text/css\" href=\"{root_path}main.css\">
39+
<link rel=\"stylesheet\" type=\"text/css\" href=\"{root_path}{crate}/main.css\">
4040
4141
{favicon, select, none{} other{
4242
<link rel=\"icon\" href=\"#\" sizes=\"16x16\"
@@ -52,7 +52,7 @@ pub fn render<T: fmt::Default, S: fmt::Default>(
5252
5353
<section class=\"sidebar\">
5454
{logo, select, none{} other{
55-
<a href='{root_path}index.html'><img src='#' alt=''/></a>
55+
<a href='{root_path}{crate}/index.html'><img src='#' alt=''/></a>
5656
}}
5757
5858
{sidebar}
@@ -73,9 +73,9 @@ pub fn render<T: fmt::Default, S: fmt::Default>(
7373
<script>
7474
var rootPath = \"{root_path}\";
7575
</script>
76-
<script src=\"{root_path}jquery.js\"></script>
76+
<script src=\"{root_path}{crate}/jquery.js\"></script>
7777
<script src=\"{root_path}{crate}/search-index.js\"></script>
78-
<script src=\"{root_path}main.js\"></script>
78+
<script src=\"{root_path}{crate}/main.js\"></script>
7979
8080
<div id=\"help\" class=\"hidden\">
8181
<div class=\"shortcuts\">

branches/auto/src/librustdoc/html/render.rs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,15 @@ pub fn run(mut crate: clean::Crate, dst: Path) {
128128
crate = cache.fold_crate(crate);
129129

130130
// Add all the static files
131-
write(cx.dst.push("jquery.js"), include_str!("static/jquery-2.0.3.min.js"));
132-
write(cx.dst.push("main.js"), include_str!("static/main.js"));
133-
write(cx.dst.push("main.css"), include_str!("static/main.css"));
134-
write(cx.dst.push("normalize.css"), include_str!("static/normalize.css"));
135-
write(cx.dst.push("index.html"), format!("
136-
<DOCTYPE html><html><head>
137-
<meta http-equiv='refresh'
138-
content=\"0; url={}/index.html\">
139-
</head><body></body></html>
140-
", crate.name));
131+
let dst = cx.dst.push(crate.name);
132+
mkdir(&dst);
133+
write(dst.push("jquery.js"), include_str!("static/jquery-2.0.3.min.js"));
134+
write(dst.push("main.js"), include_str!("static/main.js"));
135+
write(dst.push("main.css"), include_str!("static/main.css"));
136+
write(dst.push("normalize.css"), include_str!("static/normalize.css"));
141137

142138
{
143-
mkdir(&cx.dst.push(crate.name));
144-
let dst = cx.dst.push(crate.name).push("search-index.js");
139+
let dst = dst.push("search-index.js");
145140
let mut w = BufferedWriter::new(dst.open_writer(io::CreateOrTruncate));
146141
let w = &mut w as &mut io::Writer;
147142
write!(w, "var searchIndex = [");

0 commit comments

Comments
 (0)