Skip to content

Commit 1e9db71

Browse files
quodlibetorbenesch
authored andcommitted
Update bin/doc now that stable rustc does intra-doc links
1 parent 852ba0b commit 1e9db71

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

bin/doc

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,18 @@ cd "$(dirname "$0")/.."
1717

1818
. misc/shlib/shlib.bash
1919

20-
rustup=1
2120
for arg
2221
do
2322
case "$arg" in
24-
--rustup) rustup=1 ;;
25-
--rustup=*) die "--rustup option does not take an argument" ;;
26-
--no-rustup) rustup= ;;
27-
--no-rustup=*) die "--no-rustup option does not take an argument" ;;
23+
-h|--help)
24+
printf "usage: %s\n\nBuild the rust documentation site\n" "$0"
25+
exit 0
26+
;;
2827
-*) die "unknown option $arg" ;;
29-
*) die "usage: $0 [--rustup|--no-rustup]" ;;
28+
*) die "usage: $0" ;;
3029
esac
3130
done
3231

33-
cargo() {
34-
if [[ "$rustup" ]]; then
35-
command cargo +nightly "$@"
36-
else
37-
command cargo "$@"
38-
fi
39-
}
40-
41-
# Use nightly until stable supports intra-Rustdoc links.
42-
# https://github.com/rust-lang/rust/issues/43466
4332
cargo doc
4433

4534
crates=$(cargo metadata --format-version=1 \
@@ -132,3 +121,5 @@ if (el.href != "index.html") {
132121
el.href = "../index.html";
133122
}
134123
EOF
124+
125+
echo "Docs are in target/doc/index.html"

ci/deploy/devsite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
set -euo pipefail
1515

16-
bin/doc --no-rustup
16+
bin/doc
1717
bin/pydoc
1818
rsync misc/www/index.html buildkite@mtrlz.dev:/var/www/html/index.html
1919
rsync --archive target/doc/ buildkite@mtrlz.dev:/var/www/html/api/rust

0 commit comments

Comments
 (0)