-
Notifications
You must be signed in to change notification settings - Fork 42
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 #108 from godot-rust/feature/admonish
mdbook-admonish
- Loading branch information
Showing
12 changed files
with
486 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,9 @@ on: | |
env: | ||
# Use fixed versions for now, replace with 'latest' to auto-use latest | ||
# Note: during build, there's a warning when using mdbook-toc compiled against an older mdbook version, should work though. | ||
MDBOOK_VERSION: "0.4.14" | ||
MDBOOK_TOC_VERSION: "0.7.0" | ||
MDBOOK_VERSION: "0.4.32" | ||
MDBOOK_TOC_VERSION: "0.13.0" | ||
MDBOOK_ADMONISH_VERSION: "1.10.1" | ||
MDBOOK_BIN: "/tmp/mdbook-bin" | ||
|
||
jobs: | ||
|
@@ -25,15 +26,20 @@ jobs: | |
# Note: actions-rs/[email protected] was considered, but a full 'cargo install' is unnecessarily slow and the cache mechanism is not reliable | ||
# (error "Unable to download mdbook == 0.4.14 from the tool cache: Error: Unexpected HTTP response: 403") | ||
# So, directly pull the release from GitHub | ||
- name: "Install mdbook + mdbook-toc" | ||
- name: "Install mdbook, mdbook-toc, mdbook-admonish" | ||
run: | | ||
wget https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz -O /tmp/mdbook.tar.gz | ||
wget https://github.com/badboy/mdbook-toc/releases/download/${MDBOOK_TOC_VERSION}/mdbook-toc-${MDBOOK_TOC_VERSION}-x86_64-unknown-linux-gnu.tar.gz -O /tmp/mdbook-toc.tar.gz | ||
wget https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz \ | ||
-O /tmp/mdbook.tar.gz | ||
wget https://github.com/badboy/mdbook-toc/releases/download/${MDBOOK_TOC_VERSION}/mdbook-toc-${MDBOOK_TOC_VERSION}-x86_64-unknown-linux-gnu.tar.gz \ | ||
-O /tmp/mdbook-toc.tar.gz | ||
wget https://github.com/tommilligan/mdbook-admonish/releases/download/${MDBOOK_ADMONISH_VERSION}/mdbook-admonish-v${MDBOOK_ADMONISH_VERSION}-x86_64-unknown-linux-gnu.tar.gz | ||
-O /tmp/mdbook-admonish.tar.gz | ||
mkdir ${MDBOOK_BIN} | ||
echo ${MDBOOK_BIN} >> $GITHUB_PATH | ||
tar -xvzf /tmp/mdbook.tar.gz -C ${MDBOOK_BIN} | ||
tar -xvzf /tmp/mdbook-toc.tar.gz -C ${MDBOOK_BIN} | ||
tar -xvzf /tmp/mdbook-admonish.tar.gz -C ${MDBOOK_BIN} | ||
- name: "Build book" | ||
run: mdbook build | ||
|
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
Oops, something went wrong.