Files
reth/docs/vocs/scripts/build-cargo-docs.sh
2025-06-27 12:48:45 +00:00

14 lines
432 B
Bash
Executable File

#!/bin/bash
# Script to build cargo docs with the same flags as used in CI
# Navigate to the reth root directory (two levels up from book/vocs)
cd ../.. || exit 1
echo "Building cargo docs..."
# Build the documentation
export RUSTDOCFLAGS="--cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page -Zunstable-options"
cargo docs --exclude "example-*"
echo "Cargo docs built successfully at ./target/doc"