File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -17,29 +17,18 @@ cd "$(dirname "$0")/.."
17
17
18
18
. misc/shlib/shlib.bash
19
19
20
- rustup=1
21
20
for arg
22
21
do
23
22
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
+ ;;
28
27
-* ) die " unknown option $arg " ;;
29
- * ) die " usage: $0 [--rustup|--no-rustup] " ;;
28
+ * ) die " usage: $0 " ;;
30
29
esac
31
30
done
32
31
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
43
32
cargo doc
44
33
45
34
crates=$( cargo metadata --format-version=1 \
@@ -132,3 +121,5 @@ if (el.href != "index.html") {
132
121
el.href = "../index.html";
133
122
}
134
123
EOF
124
+
125
+ echo " Docs are in target/doc/index.html"
Original file line number Diff line number Diff line change 13
13
14
14
set -euo pipefail
15
15
16
- bin/doc --no-rustup
16
+ bin/doc
17
17
bin/pydoc
18
18
rsync misc/www/index.html buildkite@mtrlz.dev:/var/www/html/index.html
19
19
rsync --archive target/doc/ buildkite@mtrlz.dev:/var/www/html/api/rust
You can’t perform that action at this time.
0 commit comments