Skip to content

Commit

Permalink
feat: add build script to render katex and add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasti810 committed Sep 17, 2024
1 parent 5b4f4d5 commit 268bf0c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
set -e

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

curl -fSL -o mdbook-katex.tar.gz https://github.com/lzanini/mdbook-katex/releases/download/v0.8.0/mdbook-katex-v0.8.0-x86_64-unknown-linux-musl.tar.gz
tar -xzf mdbook-katex.tar.gz

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)

./mdbook build
Binary file added doc/theme/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 268bf0c

Please sign in to comment.