about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-11 21:26:26 -0800
committerbors <bors@rust-lang.org>2014-01-11 21:26:26 -0800
commit3e8a4a0e0065be2ad4c6e0cfd8c2d2bc0fc702d8 (patch)
tree9d21be59805d95ed4659f2b9a0c7323f6a61d7fa
parentc3c94ad8cbc7bbff01771f1501a5a31504b1618c (diff)
parentd76ce5f31eb8302076b6b2e3f8bb28560a12cc94 (diff)
downloadrust-3e8a4a0e0065be2ad4c6e0cfd8c2d2bc0fc702d8.tar.gz
rust-3e8a4a0e0065be2ad4c6e0cfd8c2d2bc0fc702d8.zip
auto merge of #11488 : kballard/rust/librustpkg-docs, r=brson
-rw-r--r--.gitignore1
-rw-r--r--doc/index.md41
-rw-r--r--mk/docs.mk4
3 files changed, 26 insertions, 20 deletions
diff --git a/.gitignore b/.gitignore
index c70dfb2a02c..37a98c45a6b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -80,6 +80,7 @@ src/.DS_Store
 /doc/rustc
 /doc/syntax
 /doc/rustuv
+/doc/rustpkg
 /nd/
 /llvm/
 version.md
diff --git a/doc/index.md b/doc/index.md
index 04682a56e97..456fedf2d47 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -6,30 +6,33 @@
 .header-section-number { display: none; }
 </style>
 
-[The Rust tutorial](tutorial.html)  ([PDF](tutorial.pdf))
-[The Rust reference manual](rust.html) ([PDF](rust.pdf))
+[The Rust tutorial](tutorial.html)  ([PDF](tutorial.pdf))  
+[The Rust reference manual](rust.html) ([PDF](rust.pdf))  
 
 # Guides
 
-[Pointers](guide-pointers.html)
-[References and Lifetimes](guide-lifetimes.html)
-[Containers and Iterators](guide-container.html)
-[Tasks and Communication](guide-tasks.html)
-[Foreign Function Interface](guide-ffi.html)
-[Macros](guide-macros.html)
-[Packaging](guide-rustpkg.html)
-[Testing](guide-testing.html)
+[Pointers](guide-pointers.html)  
+[References and Lifetimes](guide-lifetimes.html)  
+[Containers and Iterators](guide-container.html)  
+[Tasks and Communication](guide-tasks.html)  
+[Foreign Function Interface](guide-ffi.html)  
+[Macros](guide-macros.html)  
+[Packaging](guide-rustpkg.html)  
+[Testing](guide-testing.html)  
 [Conditions](guide-conditions.html)
 
 # Libraries
 
-[The standard library, `libstd`](std/index.html)
+[The standard library, `libstd`](std/index.html)  
 [The extra library, `libextra`](extra/index.html)
 
-[The M:N runtime library, `libgreen`](green/index.html)
+[The M:N runtime library, `libgreen`](green/index.html)  
 [The 1:1 runtime library, `libnative`](native/index.html)
 
-[The Rust parser, `libsyntax`](syntax/index.html)
+[The Rust libuv library, `librustuv`](rustuv/index.html)  
+[The Rust packaging library, `librustpkg`](rustpkg/index.html)
+
+[The Rust parser, `libsyntax`](syntax/index.html)  
 [The Rust compiler, `librustc`](rustc/index.html)
 
 # Tooling
@@ -38,14 +41,14 @@
 
 # FAQs
 
-[Language FAQ](complement-lang-faq.html)
-[Project FAQ](complement-project-faq.html)
-[Usage FAQ](complement-usage-faq.html)
-[Code cheatsheet](complement-cheatsheet.html) - "How do I do X?"
+[Language FAQ](complement-lang-faq.html)  
+[Project FAQ](complement-project-faq.html)  
+[Usage FAQ](complement-usage-faq.html)  
+[Code cheatsheet](complement-cheatsheet.html) - "How do I do X?"  
 [How to submit a bug report](complement-bugreport.html)
 
 # External resources
 
-The Rust [IRC channel](http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust) - `#rust` on irc.mozilla.org
-The Rust community on [Reddit](http://reddit.com/r/rust)
+The Rust [IRC channel](http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust) - `#rust` on irc.mozilla.org  
+The Rust community on [Reddit](http://reddit.com/r/rust)  
 The Rust [wiki](http://github.com/mozilla/rust/wiki)
diff --git a/mk/docs.mk b/mk/docs.mk
index d01ebb43770..1982ab0050c 100644
--- a/mk/docs.mk
+++ b/mk/docs.mk
@@ -289,7 +289,8 @@ RUSTDOC = $(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD))
 #
 # Passes --cfg stage2 to rustdoc because it uses the stage2 librustc.
 define libdoc
-doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
+doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3)) \
+		$(foreach name,$(4),$$(TLIB2_T_$(3)_H_$(3))/$$(CFG_$(name)_$(3)))
 	@$$(call E, rustdoc: $$@)
 	$(Q)$(RUSTDOC) --cfg stage2 $(2)
 
@@ -309,6 +310,7 @@ $(eval $(call libdoc,extra,$(EXTRALIB_CRATE),$(CFG_BUILD)))
 $(eval $(call libdoc,native,$(LIBNATIVE_CRATE),$(CFG_BUILD)))
 $(eval $(call libdoc,green,$(LIBGREEN_CRATE),$(CFG_BUILD)))
 $(eval $(call libdoc,rustuv,$(LIBRUSTUV_CRATE),$(CFG_BUILD)))
+$(eval $(call libdoc,rustpkg,$(RUSTPKG_LIB),$(CFG_BUILD),EXTRALIB LIBRUSTC))
 
 $(eval $(call compiledoc,rustc,$(COMPILER_CRATE),$(CFG_BUILD)))
 $(eval $(call compiledoc,syntax,$(LIBSYNTAX_CRATE),$(CFG_BUILD)))