-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f868aed
commit 6a19bd6
Showing
1 changed file
with
23 additions
and
10 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 |
---|---|---|
@@ -1,14 +1,27 @@ | ||
#!/bin/bash | ||
set -e | ||
#!/bin/sh | ||
set -e | ||
|
||
# install mdbook | ||
curl -Lo mdbook.tar.gz https://github.com/rust-lang/mdBook/releases/download/v0.4.32/mdbook-v0.4.32-x86_64-unknown-linux-musl.tar.gz | ||
tar -xvzf mdbook.tar.gz | ||
cd doc | ||
|
||
# load katex and unpack it | ||
curl -Lo mdbook-katex.tar.gz https://github.com/lzanini/mdbook-katex/releases/download/0.9.0-binaries/mdbook-katex-v0.9.0-x86_64-unknown-linux-gnu.tar.gz | ||
tar -xvzf mdbook-katex.tar.gz | ||
curl -fSL -o mdbook.tar.gz https://github.com/rust-lang/mdBook/releases/download/v0.4.33/mdbook-v0.4.33-x86_64-unknown-linux-musl.tar.gz | ||
tar -xzf mdbook.tar.gz | ||
|
||
chmod +x mdbook mdbook-katex | ||
curl -fSL -o mdbook-katex.tar.gz https://github.com/lzanini/mdbook-katex/releases/download/0.9.0-binaries/mdbook-katex-v0.9.0-x86_64-unknown-linux-gnu.tar.gz | ||
tar -xzf mdbook-katex.tar.gz | ||
|
||
./mdbook build | ||
curl -fSL -o mdbook-mermaid.tar.gz https://github.com/badboy/mdbook-mermaid/releases/download/v0.14.0/mdbook-mermaid-v0.14.0-x86_64-unknown-linux-musl.tar.gz | ||
tar -xzf mdbook-mermaid.tar.gz | ||
|
||
chmod +x mdbook mdbook-katex mdbook-mermaid | ||
|
||
export PATH=$(pwd):$PATH | ||
|
||
export MDBOOK_PLUGIN_DIR=$(pwd) | ||
|
||
echo "Current directory: $(pwd)" | ||
echo "Directory contents:" | ||
ls -l | ||
echo "PATH: $PATH" | ||
echo "MDBOOK_PLUGIN_DIR: $MDBOOK_PLUGIN_DIR" | ||
|
||
./mdbook build |