From dda85056bf578a2f99a58a32ab4bbd57900c3343 Mon Sep 17 00:00:00 2001 From: gnzlbg <gonzalobg88@gmail.com> Date: Thu, 21 Feb 2019 10:18:06 +0100 Subject: [PATCH] Fix broken links in README --- README.md | 12 +++++++----- ci/dox.sh | 3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f04816d9..a974ccd4 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 da996604..ce550814 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" -- GitLab