Skip to content

Commit 110e5dd

Browse files
committed
doc: build the docs for librustpkg
1 parent c3c94ad commit 110e5dd

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ src/.DS_Store
8080
/doc/rustc
8181
/doc/syntax
8282
/doc/rustuv
83+
/doc/rustpkg
8384
/nd/
8485
/llvm/
8586
version.md

doc/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
[The M:N runtime library, `libgreen`](green/index.html)
3030
[The 1:1 runtime library, `libnative`](native/index.html)
3131

32+
[The Rust packaging library, `librustpkg`](rustpkg/index.html)
33+
3234
[The Rust parser, `libsyntax`](syntax/index.html)
3335
[The Rust compiler, `librustc`](rustc/index.html)
3436

mk/docs.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ RUSTDOC = $(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD))
289289
#
290290
# Passes --cfg stage2 to rustdoc because it uses the stage2 librustc.
291291
define libdoc
292-
doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
292+
doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3)) \
293+
$(foreach name,$(4),$$(TLIB2_T_$(3)_H_$(3))/$$(CFG_$(name)_$(3)))
293294
@$$(call E, rustdoc: $$@)
294295
$(Q)$(RUSTDOC) --cfg stage2 $(2)
295296

@@ -309,6 +310,7 @@ $(eval $(call libdoc,extra,$(EXTRALIB_CRATE),$(CFG_BUILD)))
309310
$(eval $(call libdoc,native,$(LIBNATIVE_CRATE),$(CFG_BUILD)))
310311
$(eval $(call libdoc,green,$(LIBGREEN_CRATE),$(CFG_BUILD)))
311312
$(eval $(call libdoc,rustuv,$(LIBRUSTUV_CRATE),$(CFG_BUILD)))
313+
$(eval $(call libdoc,rustpkg,$(RUSTPKG_LIB),$(CFG_BUILD),EXTRALIB LIBRUSTC))
312314

313315
$(eval $(call compiledoc,rustc,$(COMPILER_CRATE),$(CFG_BUILD)))
314316
$(eval $(call compiledoc,syntax,$(LIBSYNTAX_CRATE),$(CFG_BUILD)))

0 commit comments

Comments
 (0)