forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rust-lang#27 from Michael-F-Bryan/linkcheck
Added the mdbook-linkcheck backend
- Loading branch information
Showing
9 changed files
with
33 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
if command -v mdbook >/dev/null 2>&1; then | ||
echo "mdbook already installed at $(command -v mdbook)" | ||
else | ||
echo "installing mdbook" | ||
cargo install mdbook --vers "0.0.28" | ||
fi | ||
function cargo_install() { | ||
local name=$1 | ||
local version=$2 | ||
|
||
if command -v ghp-import >/dev/null 2>&1; then | ||
echo "ghp-import already installed at $(which ghp-import)" | ||
else | ||
echo "installing ghp-import" | ||
pip install --user ghp-import | ||
fi | ||
if command -v $name >/dev/null 2>&1; then | ||
echo "$name is already installed at $(command -v $name)" | ||
else | ||
echo "Installing $name" | ||
cargo install $name --version $version | ||
fi | ||
} | ||
|
||
cargo_install mdbook 0.1.1 | ||
cargo_install mdbook-linkcheck 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters