Files
reth/docs/cli/update.sh
cui e910e58778 feat: docs for op-reth (#20024)
Co-authored-by: weixie.cui <weixie.cui@okg.com>
Co-authored-by: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com>
2025-11-28 11:41:27 +00:00

24 lines
616 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
--verbose
--out-dir "$VOCS_PAGES_ROOT/cli/"
"$RETH" "$OP_RETH"
)
echo "Running: $" "${cmd[*]}"
"${cmd[@]}"