hack + drive-by-fix

This commit is contained in:
Mark Mansi 2019-09-05 18:58:16 -05:00 committed by Who? Me?!
parent 83cdd46c3e
commit 6a0e3f667b
4 changed files with 12 additions and 3 deletions

View File

@ -4,7 +4,7 @@ rust:
cache:
- cargo
- directories:
- book/linkcheck/
- $HOME/linkcheck/
before_install:
- shopt -s globstar
- MAX_LINE_LENGTH=100 bash ci/check_line_lengths.sh src/**/*.md

View File

@ -3,10 +3,14 @@ title = "Guide to Rustc Development"
author = "Rustc developers"
description = "A guide to developing rustc"
[build]
create-missing = false
[output.html]
[output.html.search]
[output.linkcheck]
command = "sed 's/.*//'" # tell mdbook not to run, since we want to run it manually
follow-web-links = true
exclude = [ "crates\\.io", "gcc\\.godbolt\\.org", "youtube\\.com", "dl\\.acm\\.org" ]

View File

@ -2,7 +2,12 @@
output=$(mktemp)
RUST_LOG=mdbook_linkcheck=debug mdbook build 2>&1 | tee $output
mkdir -p book/
cp -r $HOME/linkcheck/ book/
RUST_LOG=mdbook_linkcheck=debug mdbook-linkcheck -s 2>&1 | tee -a $output
cp -r book/linkcheck $HOME/
mdbook build
result=${PIPESTATUS[0]}

View File

@ -65,7 +65,7 @@
- [Type checking](./type-checking.md)
- [Method Lookup](./method-lookup.md)
- [Variance](./variance.md)
- [Existential Types](./existential-types.md)
- [Opaque Types](./opaque-types-type-alias-impl-trait.md)
- [The MIR (Mid-level IR)](./mir/index.md)
- [MIR construction](./mir/construction.md)
- [MIR visitor and traversal](./mir/visitor.md)