about summary refs log tree commit diff
path: root/src/libstd/std.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-09-18 22:18:38 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-09-20 22:49:03 -0700
commit4fd061c426902b0904c65e64a3780b21f9ab3afb (patch)
treefc6835eb507e916e8184dc821b44e01e5261ccdf /src/libstd/std.rs
parenta95604fcaacf9cbad5f57b8c08e1b3e871462e9c (diff)
Implement a web backend for rustdoc_ng
This large commit implements and `html` output option for rustdoc_ng. The
executable has been altered to be invoked as "rustdoc_ng html <crate>" and
it will dump everything into the local "doc" directory. JSON can still be
generated by changing 'html' to 'json'.

This also fixes a number of bugs in rustdoc_ng relating to comment stripping,
along with some other various issues that I found along the way.

The `make doc` command has been altered to generate the new documentation into
the `doc/ng/$(CRATE)` directories.
Diffstat (limited to 'src/libstd/std.rs')
-rw-r--r--src/libstd/std.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/std.rs b/src/libstd/std.rs
index e9d5dd416ad..8dcb7d8cd04 100644
--- a/src/libstd/std.rs
+++ b/src/libstd/std.rs
@@ -57,6 +57,10 @@ they contained the following prologue:
 #[license = "MIT/ASL2"];
 #[crate_type = "lib"];
 
+#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
+      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
+      passes = "strip-hidden")];
+
 // Don't link to std. We are std.
 #[no_std];