diff --git a/README.md b/README.md
index f04816d956f5f8fde4ee60126b4548a6e17e8ae7..a974ccd414c1589ad0d4d54c7e2fc608a2a29669 100644
--- a/README.md
+++ b/README.md
@@ -51,11 +51,13 @@ newer Rust features are only available on newer Rust toolchains:
 
 ## Platform support
 
-[Platform-specific documentation of libc's master branch for all supported platforms][docs.master].
+[Platform-specific documentation (master branch)][docs.master].
 
-See [`ci/build.sh`](ci/build.sh) for the platforms on which `libc` is
-guaranteed to build for each Rust toolchain. The test-matrix at [Travis-CI],
-[Appveyor], and [Cirrus-CI] show the platforms in which `libc` tests are run.
+See
+[`ci/build.sh`](https://github.com/rust-lang/libc/blob/master/libc-test/build.rs)
+for the platforms on which `libc` is guaranteed to build for each Rust
+toolchain. The test-matrix at [Travis-CI], [Appveyor], and [Cirrus-CI] show the
+platforms in which `libc` tests are run.
 
 <div class="platform_docs"></div>
 
@@ -98,4 +100,4 @@ dual licensed as above, without any additional terms or conditions.
 [Documentation]: https://docs.rs/libc/badge.svg
 [docs.rs]: https://docs.rs/libc
 [License]: https://img.shields.io/crates/l/libc.svg
-[docs.master]: https://rust-lang.github.io/libc
+[docs.master]: https://rust-lang.github.io/libc/#platform-specific-documentation
diff --git a/ci/dox.sh b/ci/dox.sh
index da996604b4602e79de7c7edd90b7b2df0ab640f2..ce5508147647cdae5e590a06d35233ddba0ebb60 100644
--- a/ci/dox.sh
+++ b/ci/dox.sh
@@ -59,6 +59,9 @@ set +x
 { head -n "$((line-1))" $README; cat $PLATFORM_SUPPORT; tail -n "+$((line+1))" $README; } > $TARGET_DOC_DIR/$README
 set -x
 
+# Copy the licenses
+cp LICENSE-* $TARGET_DOC_DIR/
+
 # If we're on travis, not a PR, and on the right branch, publish!
 if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
   pip install ghp_import --install-option="--prefix=$HOME/.local"