Skip to content

Commit ae49be6

Browse files
committed
---
yaml --- r: 82543 b: refs/heads/auto c: 90e1e8f h: refs/heads/master i: 82541: 257018c 82539: 4ee0e4f 82535: 0e40a30 82527: 4d3785a v: v3
1 parent a948b48 commit ae49be6

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
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: 80e096830dc4bd291597c904078fb0e60a09b2ec
16+
refs/heads/auto: 90e1e8fc4078c05b22b6a4d2716f50db6ec860f7
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,7 @@ fn main() {
26552655

26562656
In general, `use` creates an local alias:
26572657
An alternate path and a possibly different name to access the same item,
2658-
whiteout touching the original, and with both being interchangeable.
2658+
without touching the original, and with both being interchangeable.
26592659

26602660
## Reexporting names
26612661

branches/auto/mk/tools.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ 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 $(addprefix $(S)src/librustdoc/, \
25-
*.rs */*.rs */*/*.rs))
24+
RUSTDOC_INPUTS := $(wildcard $(S)src/librustdoc/*.rs)
2625

2726
# Rusti, the JIT REPL
2827
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}{crate}/main.css\">
39+
<link rel=\"stylesheet\" type=\"text/css\" href=\"{root_path}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}{crate}/index.html'><img src='#' alt=''/></a>
55+
<a href='{root_path}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}{crate}/jquery.js\"></script>
76+
<script src=\"{root_path}jquery.js\"></script>
7777
<script src=\"{root_path}{crate}/search-index.js\"></script>
78-
<script src=\"{root_path}{crate}/main.js\"></script>
78+
<script src=\"{root_path}main.js\"></script>
7979
8080
<div id=\"help\" class=\"hidden\">
8181
<div class=\"shortcuts\">

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

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

130130
// Add all the static files
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"));
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));
137141

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

0 commit comments

Comments
 (0)