From e3d0780fc72df4a5b1c93e4adaaa92b7a6113ae5 Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Fri, 3 Jul 2020 18:33:21 -0700 Subject: [PATCH 1/2] skip linkchecker for now --- ci/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/script.sh b/ci/script.sh index ea6a9be..eef811b 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -50,7 +50,7 @@ main() { # check links # FIXME(rust-lang-nursery/mdbook#789) remove `--ignore-url` when that bug is fixed - linkchecker --ignore-url "print.html" doc + # linkchecker --ignore-url "print.html" doc } main From 2f6af7442f7945537172d2ac40a5e5050be2b58c Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Sat, 4 Jul 2020 02:59:36 -0700 Subject: [PATCH 2/2] copy parts of install.sh from discovery book and see if it fixes the issue --- ci/install.sh | 13 ++++++++----- ci/script.sh | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ci/install.sh b/ci/install.sh index 3745af0..e73b4b7 100644 --- a/ci/install.sh +++ b/ci/install.sh @@ -1,15 +1,18 @@ set -euxo pipefail main() { - local tag=$(git ls-remote --tags --refs --exit-code https://github.com/rust-lang-nursery/mdbook \ + local tag=$(git ls-remote --tags --refs --exit-code \ + https://github.com/rust-lang/mdbook \ | cut -d/ -f3 \ - | grep -E '^v0.2.[0-9]+$' \ + | grep -E '^v[0-9\.]+$' \ | sort --version-sort \ | tail -n1) - # Temporarily use older version until packages are available for 0.2.2 (or newer) - local tag="v0.2.1" + curl -LSfs https://japaric.github.io/trust/install.sh | \ - sh -s -- --git rust-lang-nursery/mdbook --tag $tag + sh -s -- \ + --force \ + --git rust-lang/mdbook \ + --tag $tag pip install linkchecker --user } diff --git a/ci/script.sh b/ci/script.sh index eef811b..ea6a9be 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -50,7 +50,7 @@ main() { # check links # FIXME(rust-lang-nursery/mdbook#789) remove `--ignore-url` when that bug is fixed - # linkchecker --ignore-url "print.html" doc + linkchecker --ignore-url "print.html" doc } main