Skip to content

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasti810 committed Sep 17, 2024
1 parent f868aed commit 6a19bd6
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions doc/bash.sh
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

0 comments on commit 6a19bd6

Please sign in to comment.