You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
237 B
Bash
16 lines
237 B
Bash
1 year ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
OUTDIR="$(node -p 'require("./docs/config.js").outputDir')"
|
||
|
|
||
|
if [ ! -d node_modules ]; then
|
||
|
npm ci
|
||
|
fi
|
||
|
|
||
|
rm -rf "$OUTDIR"
|
||
|
|
||
|
hardhat docgen
|
||
|
|
||
|
node scripts/gen-nav.js "$OUTDIR" > "$OUTDIR/../nav.adoc"
|