Skip to content

Commit 05fbbb2

Browse files
authored
Merge pull request #1358 from stevebob/book-linkcheck-pr
Installing and running the linkcheck mdbook backend
2 parents e3aabcb + 3c12e13 commit 05fbbb2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,16 @@ jobs:
242242
- job: doc_book
243243
displayName: "Doc - build the book"
244244
steps:
245+
- template: ci/azure-install-rust.yml
245246
- script: |
246-
mkdir $HOME/mdbook
247-
curl -L https://github.com/rust-lang-nursery/mdBook/releases/download/v0.2.1/mdbook-v0.2.1-x86_64-unknown-linux-musl.tar.gz | tar xzf - -C $HOME/mdbook
248-
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/mdbook"
247+
which mdbook || cargo install mdbook
248+
which mdbook-linkcheck || cargo install mdbook-linkcheck
249249
displayName: "Install mdbook"
250250
- script: (cd guide && mv _theme theme && mdbook build)
251251
- task: PublishPipelineArtifact@0
252252
inputs:
253253
artifactName: doc_book
254-
targetPath: guide/book
254+
targetPath: guide/book/html
255255

256256
- job: doc_api
257257
displayName: "Doc - build the API documentation"

guide/book.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ authors = ["Nick Fitzgerald"]
33
multilingual = false
44
src = "src"
55
title = "The `wasm-bindgen` Guide"
6+
7+
[output.html]
8+
[output.linkcheck]

0 commit comments

Comments
 (0)