From 2a79522910227ee457147d9d293a7d68d44bccc0 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 4 Jan 2021 11:16:49 -0800 Subject: [PATCH] Update mdbook --- .github/workflows/ci.yml | 11 ++++------- book/book.toml | 4 +--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 729c1bb52f2..a2574e7ea64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,15 +42,12 @@ jobs: - name: Install mdbook run: | cd book - curl -L https://github.com/rust-lang/mdBook/releases/download/v0.3.7/mdbook-v0.3.7-x86_64-unknown-linux-gnu.tar.gz | tar xz + curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-linux-gnu.tar.gz | tar xz # Add the book directory to the $PATH echo "$GITHUB_WORKSPACE/book" >> $GITHUB_PATH - - name: Install mdbook-toc - run: cd book && curl -L https://github.com/badboy/mdbook-toc/releases/download/0.2.4/mdbook-toc-0.2.4-x86_64-unknown-linux-gnu.tar.gz | tar xz - - name: Install mdbook-mermaid - run: cd book && curl -L https://github.com/badboy/mdbook-mermaid/releases/download/0.2.2/mdbook-mermaid-0.2.2-x86_64-unknown-linux-gnu.tar.gz | tar xz + run: cargo install mdbook-mermaid --locked --version 0.6.1 - name: Execute tests for Chalk book run: cd book && ./mdbook test @@ -104,12 +101,12 @@ jobs: - name: Install mdbook run: | cd book - curl -L https://github.com/rust-lang/mdBook/releases/download/v0.3.7/mdbook-v0.3.7-x86_64-unknown-linux-gnu.tar.gz | tar xz + curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-linux-gnu.tar.gz | tar xz # Add the book directory to the $PATH echo "$GITHUB_WORKSPACE/book" >> $GITHUB_PATH - name: Install mdbook-linkcheck - run: cd book && curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.5.0/mdbook-linkcheck-v0.5.0-x86_64-unknown-linux-gnu.tar.gz | tar xz + run: cd book && curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.7.0/mdbook-linkcheck-v0.7.0-x86_64-unknown-linux-gnu.tar.gz | tar xz - name: Build Chalk book run: cd book && ./mdbook build diff --git a/book/book.toml b/book/book.toml index 82302c76ceb..6ab352fa9b2 100644 --- a/book/book.toml +++ b/book/book.toml @@ -15,6 +15,4 @@ additional-js = ["mermaid.min.js", "mermaid-init.js"] [output.linkcheck] follow-web-links = true warning-policy = "error" - -[preprocessor.toc] -command = "mdbook-toc" +optional = true