Skip to content

Commit

Permalink
ci: install mdbook-linkcheck in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NOBLES5E committed Jun 17, 2021
1 parent 2bacff7 commit d22f9df
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
- name: Install `mdbook`
run: curl -L "https://github.com/rust-lang/mdBook/releases/download/v0.4.10/mdbook-v0.4.10-x86_64-unknown-linux-gnu.tar.gz" \
| tar xvz
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: mdbook-linkcheck
- run: ./mdbook test
- run: ./mdbook build

Expand All @@ -30,5 +37,12 @@ jobs:
- name: Install `mdbook`
run: curl -L "https://github.com/rust-lang/mdBook/releases/download/v0.4.10/mdbook-v0.4.10-x86_64-unknown-linux-gnu.tar.gz" \
| tar xvz
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: mdbook-linkcheck
- run: ./mdbook build
- run: ./ci/deploy.sh
7 changes: 7 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
title = "Bagua Tutorials"
description = "Guide on how to use Bagua, a deep learning distributed training framework"
author = "Kuaishou AI Platform & DS3 Lab <[email protected]>"

[output.linkcheck]

[output.html]
follow-web-links = true
traverse-parent-directories = false
warning-policy = "error"
2 changes: 1 addition & 1 deletion ci/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

mv -f book/* .
mv -f book/html/* .

git init
git config user.name "Bagua GitHub Action"
Expand Down

0 comments on commit d22f9df

Please sign in to comment.