mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
14 lines
432 B
Bash
Executable File
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" |