mirror of
https://github.com/tommilligan/mdbook-admonish.git
synced 2025-12-27 08:45:28 -05:00
25 lines
417 B
Bash
Executable File
25 lines
417 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Build book, using styles present in the repository.
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"/..
|
|
|
|
function eprintln() {
|
|
>&2 echo "$1"
|
|
}
|
|
|
|
eprintln "Installing mdbook-admonish (to system)"
|
|
cargo install --path . --force
|
|
|
|
pushd book
|
|
eprintln "Installing mdbook-admonish (to book)"
|
|
mdbook-admonish install .
|
|
|
|
eprintln "Building book"
|
|
mdbook build
|
|
popd
|
|
|
|
eprintln "Book generated at ./book/book/index.html"
|