Skip to content

Commit 2f6af74

Browse files
committed
copy parts of install.sh from discovery book and see if it fixes the issue
1 parent e3d0780 commit 2f6af74

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

ci/install.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
set -euxo pipefail
22

33
main() {
4-
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/rust-lang-nursery/mdbook \
4+
local tag=$(git ls-remote --tags --refs --exit-code \
5+
https://github.com/rust-lang/mdbook \
56
| cut -d/ -f3 \
6-
| grep -E '^v0.2.[0-9]+$' \
7+
| grep -E '^v[0-9\.]+$' \
78
| sort --version-sort \
89
| tail -n1)
9-
# Temporarily use older version until packages are available for 0.2.2 (or newer)
10-
local tag="v0.2.1"
10+
1111
curl -LSfs https://japaric.github.io/trust/install.sh | \
12-
sh -s -- --git rust-lang-nursery/mdbook --tag $tag
12+
sh -s -- \
13+
--force \
14+
--git rust-lang/mdbook \
15+
--tag $tag
1316

1417
pip install linkchecker --user
1518
}

ci/script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ main() {
5050

5151
# check links
5252
# FIXME(rust-lang-nursery/mdbook#789) remove `--ignore-url` when that bug is fixed
53-
# linkchecker --ignore-url "print.html" doc
53+
linkchecker --ignore-url "print.html" doc
5454
}
5555

5656
main

0 commit comments

Comments
 (0)