remove all the hacks, add some improvements
This commit is contained in:
parent
a1d1860a11
commit
2d8434cec3
|
|
@ -4,7 +4,7 @@ rust:
|
||||||
cache:
|
cache:
|
||||||
- cargo
|
- cargo
|
||||||
- directories:
|
- directories:
|
||||||
- $HOME/linkcheck/
|
- book/linkcheck/
|
||||||
before_install:
|
before_install:
|
||||||
- shopt -s globstar
|
- shopt -s globstar
|
||||||
- MAX_LINE_LENGTH=100 bash ci/check_line_lengths.sh src/**/*.md
|
- MAX_LINE_LENGTH=100 bash ci/check_line_lengths.sh src/**/*.md
|
||||||
|
|
@ -12,7 +12,7 @@ install:
|
||||||
- source ~/.cargo/env || true
|
- source ~/.cargo/env || true
|
||||||
- bash -x ci/install.sh
|
- bash -x ci/install.sh
|
||||||
script:
|
script:
|
||||||
- bash -x ci/build.sh
|
- mdbook build
|
||||||
- mdbook test
|
- mdbook test
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ create-missing = false
|
||||||
[output.html.search]
|
[output.html.search]
|
||||||
|
|
||||||
[output.linkcheck]
|
[output.linkcheck]
|
||||||
command = "sed 's/.*//'" # tell mdbook not to run, since we want to run it manually
|
|
||||||
follow-web-links = true
|
follow-web-links = true
|
||||||
exclude = [ "crates\\.io", "gcc\\.godbolt\\.org", "youtube\\.com", "dl\\.acm\\.org" ]
|
exclude = [ "crates\\.io", "gcc\\.godbolt\\.org", "youtube\\.com", "dl\\.acm\\.org" ]
|
||||||
|
cache-timeout = 172800
|
||||||
|
warning-policy = "error"
|
||||||
|
|
|
||||||
10
ci/build.sh
10
ci/build.sh
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash -x
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
mkdir -p book/
|
|
||||||
cp -r $HOME/linkcheck/ book/
|
|
||||||
RUST_LOG=mdbook_linkcheck=debug mdbook-linkcheck -s
|
|
||||||
cp -r book/linkcheck $HOME/
|
|
||||||
|
|
||||||
mdbook build
|
|
||||||
|
|
@ -20,5 +20,5 @@ function cargo_install() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
cargo_install mdbook 0.3.1
|
cargo_install mdbook 0.3.4
|
||||||
cargo_install mdbook-linkcheck 0.4.0
|
cargo_install mdbook-linkcheck 0.5.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue