hack + drive-by-fix

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

View File

@ -4,7 +4,7 @@ rust:
cache: cache:
- cargo - cargo
- directories: - directories:
- book/linkcheck/ - $HOME/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

View File

@ -3,10 +3,14 @@ title = "Guide to Rustc Development"
author = "Rustc developers" author = "Rustc developers"
description = "A guide to developing rustc" description = "A guide to developing rustc"
[build]
create-missing = false
[output.html] [output.html]
[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" ]

View File

@ -2,7 +2,12 @@
output=$(mktemp) 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]} result=${PIPESTATUS[0]}

View File

@ -65,7 +65,7 @@
- [Type checking](./type-checking.md) - [Type checking](./type-checking.md)
- [Method Lookup](./method-lookup.md) - [Method Lookup](./method-lookup.md)
- [Variance](./variance.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) - [The MIR (Mid-level IR)](./mir/index.md)
- [MIR construction](./mir/construction.md) - [MIR construction](./mir/construction.md)
- [MIR visitor and traversal](./mir/visitor.md) - [MIR visitor and traversal](./mir/visitor.md)