Skip to content

Commit fc1774a

Browse files
ngirardStjepan Glavina
authored and
Stjepan Glavina
committed
Manual: automated link checking using mdbook-linkcheck (#61)
* travis.yml: add before_script instruction for mdbook and mdbook-linkcheck * book.toml: add mdbook-linkcheck config options * Update book.toml
1 parent 8129da9 commit fc1774a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ env:
55

66
before_script:
77
- rustup component add rustfmt
8+
- if [[ -n "$BUILD_DOCS" ]]; then (cargo install mdbook --force || true); fi
9+
- if [[ -n "$BUILD_DOCS" ]]; then (cargo install mdbook-linkcheck --force || true); fi
810

911
matrix:
1012
fast_finish: true

docs/book.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@ create-missing = false
1111
[output.html]
1212
git-repository-url = "https://github.com/async-rs/async-std"
1313
git-repository-icon = "fa-github"
14+
15+
[output.linkcheck]
16+
# Should we check links on the internet? Enabling this option adds a
17+
# non-negligible performance impact
18+
follow-web-links = false
19+
# Are we allowed to link to files outside of the book's root directory? This
20+
# may help prevent linking to sensitive files (e.g. "../../../../etc/shadow")
21+
traverse-parent-directories = false

0 commit comments

Comments
 (0)