mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-19 20:30:01 +00:00
Add build script for RustFrame user guide using mdBook
This commit is contained in:
parent
9db8853d75
commit
b78dd75e77
15
docs/build.sh
Executable file
15
docs/build.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
# Build and test the RustFrame user guide using mdBook.
|
||||
set -e
|
||||
# Ensure the library is compiled so examples can link against it.
|
||||
|
||||
cargo clean
|
||||
|
||||
cargo build --manifest-path ../Cargo.toml
|
||||
# Run embedded code examples as tests.
|
||||
mdbook test -L ../target/debug/deps "$@"
|
||||
# Finally, render the book.
|
||||
mdbook build "$@"
|
||||
|
||||
cargo build
|
||||
cargo build --release
|
Loading…
x
Reference in New Issue
Block a user