Skip to content

Commit

Permalink
hack + drive-by-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Sep 6, 2019
1 parent 1952189 commit 941968d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
7 changes: 6 additions & 1 deletion ci/build-ignore-timeouts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]}

Expand Down
2 changes: 1 addition & 1 deletion src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 941968d

Please sign in to comment.