remove all the hacks, add some improvements

This commit is contained in:
Mark Mansi 2019-11-05 11:18:49 -06:00 committed by Who? Me?!
parent a1d1860a11
commit 2d8434cec3
4 changed files with 6 additions and 15 deletions

View File

@ -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:

View File

@ -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"

View File

@ -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

View File

@ -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