]> git.lizzy.rs Git - rust.git/commit
auto merge of #14777 : alexcrichton/rust/issue-14747, r=huonw
authorbors <bors@rust-lang.org>
Wed, 11 Jun 2014 02:52:05 +0000 (19:52 -0700)
committerbors <bors@rust-lang.org>
Wed, 11 Jun 2014 02:52:05 +0000 (19:52 -0700)
commitc690191a84728c289a4b3dc17b07934a66311d9d
treeac026b547e0ac89559763163860ec07b895fcd98
parentf92a8facf90b40a483032cedb98decc8c41bde51
parent992a2db1fc64987c0c68c66e74bff81468b6f7b8
auto merge of #14777 : alexcrichton/rust/issue-14747, r=huonw

When generating documentation, rustdoc has the ability to generate relative
links within the current distribution of crates to one another. To do this, it
must recognize when a crate's documentation is in the same output directory. The
current threshold for "local documentation for crate X being available" is
whether the directory "doc/X" exists.

This change modifies the build system to have new dependencies for each
directory of upstream crates for a rustdoc invocation. This will ensure that
when building documentation that all the crates in the standard distribution are
guaranteed to have relative links to one another.

This change is prompted by guaranteeing that offline docs always work with one
another. Before this change, races could mean that some docs were built before
others, and hence may have http links when relative links would suffice.

Closes #14747