Installing and running the linkcheck mdbook backend

This commit is contained in:
Stephen Sherratt 2019-03-16 17:40:16 +00:00
parent 185c2b66fa
commit 47f3247a0e
2 changed files with 6 additions and 4 deletions

View File

@ -232,15 +232,14 @@ jobs:
displayName: "Doc - build the book" displayName: "Doc - build the book"
steps: steps:
- script: | - script: |
mkdir $HOME/mdbook which mdbook || cargo install mdbook
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 which mdbook-linkcheck || cargo install mdbook-linkcheck
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/mdbook"
displayName: "Install mdbook" displayName: "Install mdbook"
- script: (cd guide && mv _theme theme && mdbook build) - script: (cd guide && mv _theme theme && mdbook build)
- task: PublishPipelineArtifact@0 - task: PublishPipelineArtifact@0
inputs: inputs:
artifactName: doc_book artifactName: doc_book
targetPath: guide/book targetPath: guide/book/html
- job: doc_api - job: doc_api
displayName: "Doc - build the API documentation" displayName: "Doc - build the API documentation"

View File

@ -3,3 +3,6 @@ authors = ["Nick Fitzgerald"]
multilingual = false multilingual = false
src = "src" src = "src"
title = "The `wasm-bindgen` Guide" title = "The `wasm-bindgen` Guide"
[output.html]
[output.linkcheck]