Skip to content

Commit 0c9a404

Browse files
committed
---
yaml --- r: 81775 b: refs/heads/master c: 90e1e8f h: refs/heads/master i: 81773: 4805c57 81771: 9ebaf6f 81767: 08833d0 81759: aa7de38 v: v3
1 parent e689a87 commit 0c9a404

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 80e096830dc4bd291597c904078fb0e60a09b2ec
2+
refs/heads/master: 90e1e8fc4078c05b22b6a4d2716f50db6ec860f7
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/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

trunk/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

trunk/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\">

trunk/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)