mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-19 20:30:01 +00:00
Refactor build process
This commit is contained in:
parent
1dcd9727b4
commit
3654c7053c
@ -1,15 +1,7 @@
|
||||
#!/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
|
||||
cd docs
|
||||
bash gen.sh "$@"
|
||||
cd ..
|
14
docs/gen.sh
Normal file
14
docs/gen.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
|
||||
cargo clean
|
||||
|
||||
cargo build --manifest-path ../Cargo.toml
|
||||
|
||||
mdbook test -L ../target/debug/deps "$@"
|
||||
|
||||
mdbook build "$@"
|
||||
|
||||
cargo build
|
||||
cargo build --release
|
Loading…
x
Reference in New Issue
Block a user