-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add build script to render katex and add favicon #121
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quote variable expansions to prevent word splitting and globbing In the Apply the following diff to fix this: -export PATH=$(pwd):$PATH
+PATH="$(pwd):$PATH"
+export PATH Committable suggestion
Suggested change
ToolsShellcheck
|
||||||||
|
||||||||
export MDBOOK_PLUGIN_DIR=$(pwd) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quote variable expansion to prevent word splitting and globbing In the Apply the following diff to fix this: -export MDBOOK_PLUGIN_DIR=$(pwd)
+MDBOOK_PLUGIN_DIR="$(pwd)"
+export MDBOOK_PLUGIN_DIR Committable suggestion
Suggested change
ToolsShellcheck
|
||||||||
|
||||||||
./mdbook build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider removing downloaded archive files after extraction
After extracting the tar.gz files, the archives remain in the directory. Removing them can keep the workspace clean and prevent unnecessary clutter.
Update the script to remove the archives after extraction:
Committable suggestion