File tree 5 files changed +15
-11
lines changed
5 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,8 @@ jobs:
185
185
- run : rustup component add rust-docs
186
186
- run : ci/validate-man.sh
187
187
# This requires rustfmt, use stable.
188
- - run : cd src/doc/semver-check && cargo +stable run
188
+ - name : Run semver-check
189
+ run : cargo +stable run -p semver-check
189
190
- run : |
190
191
mkdir mdbook
191
192
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.27/mdbook-v0.4.27-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
@@ -195,11 +196,11 @@ jobs:
195
196
env :
196
197
RUSTDOCFLAGS : -D warnings
197
198
- run : cd src/doc && mdbook build --dest-dir ../../target/doc
198
- - run : |
199
- cd src/doc
200
- curl -sSLo linkcheck.sh \
201
- https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
202
- sh linkcheck.sh --all cargo
199
+ - name : Run linkchecker.sh
200
+ run : |
201
+ cd target
202
+ curl -sSLO https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
203
+ sh linkcheck.sh --all --path ../src/doc cargo
203
204
204
205
success :
205
206
permissions :
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ members = [
7
7
" benches/capture" ,
8
8
]
9
9
exclude = [
10
- # For linkchecker (downloaded during CI) and semver-check
11
- # TODO: Either move semver-check to crates/ folder,
12
- # or make linkchecker run from a given directory.
13
- " src/doc/" ,
14
10
" target/" , # exclude bench testing
15
11
]
16
12
File renamed without changes.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const SEPARATOR: &str = "///////////////////////////////////////////////////////
25
25
fn doit ( ) -> Result < ( ) , Box < dyn Error > > {
26
26
let filename = std:: env:: args ( )
27
27
. nth ( 1 )
28
- . unwrap_or_else ( || ".. /src/reference/semver.md" . to_string ( ) ) ;
28
+ . unwrap_or_else ( || "src/doc /src/reference/semver.md" . to_string ( ) ) ;
29
29
let contents = fs:: read_to_string ( filename) ?;
30
30
let mut lines = contents. lines ( ) . enumerate ( ) ;
31
31
You can’t perform that action at this time.
0 commit comments