mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-08 23:08:19 -05:00
25 lines
628 B
Bash
Executable File
25 lines
628 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
|
|
DOCS_ROOT="$(dirname "$(dirname "$0")")"
|
|
RETH=${1:-"$(dirname "$DOCS_ROOT")/target/debug/reth"}
|
|
OP_RETH=${2:-"$(dirname "$DOCS_ROOT")/target/debug/op-reth"}
|
|
VOCS_PAGES_ROOT="$DOCS_ROOT/vocs/docs/pages"
|
|
echo "Generating CLI documentation for reth at $RETH and op-reth at $OP_RETH"
|
|
|
|
echo "Using docs root: $DOCS_ROOT"
|
|
echo "Using vocs pages root: $VOCS_PAGES_ROOT"
|
|
cmd=(
|
|
"$(dirname "$0")/help.rs"
|
|
--root-dir "$DOCS_ROOT/"
|
|
--root-indentation 2
|
|
--root-summary
|
|
--sidebar
|
|
--verbose
|
|
--out-dir "$VOCS_PAGES_ROOT/cli/"
|
|
"$RETH" "$OP_RETH"
|
|
)
|
|
echo "Running: $" "${cmd[*]}"
|
|
"${cmd[@]}"
|
|
|