Skip to content

Commit f783321

Browse files
committed
mk: rewrite the documentation handling.
This converts it to be very similar to crates.mk, with a single list of the documentation items creating all the necessary bits and pieces. Changes include: - rustdoc is used to render HTML & test standalone docs - documentation building now obeys NO_REBUILD=1 - testing standalone docs now obeys NO_REBUILD=1 - L10N is slightly less broken (in particular, it shares dependencies and code with the rest of the code) - PDFs can be built for all documentation items, not just tutorial and manual - removes the obsolete & unused extract-tests.py script - adjust the CSS for standalone docs to use the rustdoc syntax highlighting
1 parent 2d7d7e5 commit f783321

File tree

6 files changed

+235
-505
lines changed

6 files changed

+235
-505
lines changed

mk/clean.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ clean-misc:
4141
@$(call E, cleaning)
4242
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)
4343
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
44-
$(Q)rm -Rf $(DOCS)
4544
$(Q)rm -Rf $(GENERATED)
4645
$(Q)rm -Rf tmp/*
4746
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz $(PKG_NAME)-*.exe dist

mk/crates.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
9292
################################################################################
9393

9494
DOC_CRATES := $(filter-out rustc, $(filter-out syntax, $(CRATES)))
95+
COMPILER_DOC_CRATES := rustc syntax
9596

9697
# This macro creates some simple definitions for each crate being built, just
9798
# some munging of all of the parameters above.

0 commit comments

Comments
 (0)