From 2d8dd6afd4ef36742b4e8a4e848e13ddbe275fe8 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 7 Jan 2014 21:17:52 -0800 Subject: [PATCH] doc: Add rustc and syntax to the index --- doc/index.md | 2 ++ src/librustc/lib.rs | 13 +++++++++++++ src/libsyntax/lib.rs | 16 ++++++++++++---- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/doc/index.md b/doc/index.md index c24d4dd9f7c..5ee7fccc48c 100644 --- a/doc/index.md +++ b/doc/index.md @@ -27,6 +27,8 @@ [extra](extra/index.html) [green](green/index.html) [native](native/index.html) +[syntax](syntax/index.html) +[rustc](rustc/index.html) # Tooling diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs index b3a2bb5b72c..5aacef182fa 100644 --- a/src/librustc/lib.rs +++ b/src/librustc/lib.rs @@ -8,11 +8,24 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +/*! + +The Rust compiler. + +# Note + +This API is completely unstable and subject to change. + +*/ + #[crate_id = "rustc#0.9"]; #[comment = "The Rust compiler"]; #[license = "MIT/ASL2"]; #[crate_type = "dylib"]; #[crate_type = "rlib"]; +#[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", + html_root_url = "http://static.rust-lang.org/doc/master")]; #[feature(macro_rules, globs, struct_variant, managed_boxes)]; diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 1610b77a661..5128cdd54cc 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -8,15 +8,23 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -/*! This module contains the Rust parser. It maps source text - * to token trees and to ASTs. It contains code for expanding - * macros. - */ +/*! + +The Rust parser and macro expander. + +# Note + +This API is completely unstable and subject to change. + +*/ #[crate_id = "syntax#0.9"]; #[license = "MIT/ASL2"]; #[crate_type = "dylib"]; #[crate_type = "rlib"]; +#[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", + html_root_url = "http://static.rust-lang.org/doc/master")]; #[feature(macro_rules, globs, managed_boxes)];