From 47f3247a0ed59594a2fcf400ce1b7c1e95f26efc Mon Sep 17 00:00:00 2001 From: Stephen Sherratt Date: Sat, 16 Mar 2019 17:40:16 +0000 Subject: [PATCH] Installing and running the linkcheck mdbook backend --- azure-pipelines.yml | 7 +++---- guide/book.toml | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fbc8af42..b033a424 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -232,15 +232,14 @@ jobs: displayName: "Doc - build the book" steps: - script: | - mkdir $HOME/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 - echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/mdbook" + which mdbook || cargo install mdbook + which mdbook-linkcheck || cargo install mdbook-linkcheck displayName: "Install mdbook" - script: (cd guide && mv _theme theme && mdbook build) - task: PublishPipelineArtifact@0 inputs: artifactName: doc_book - targetPath: guide/book + targetPath: guide/book/html - job: doc_api displayName: "Doc - build the API documentation" diff --git a/guide/book.toml b/guide/book.toml index 0bc365df..53670cbc 100644 --- a/guide/book.toml +++ b/guide/book.toml @@ -3,3 +3,6 @@ authors = ["Nick Fitzgerald"] multilingual = false src = "src" title = "The `wasm-bindgen` Guide" + +[output.html] +[output.linkcheck]