mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-10-04 12:59:26 +00:00
Add build script for RustFrame user guide using mdBook
This commit is contained in:
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
|
Reference in New Issue
Block a user