mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
openzeppelin-contracts/scripts/prepare-docs.sh

23 lines
425 B

#!/usr/bin/env bash
set -o errexit
OUTDIR=docs/modules/api/pages/
if [ ! -d node_modules ]; then
npm ci
fi
rm -rf "$OUTDIR"
solidity-docgen \
-t docs \
-o "$OUTDIR" \
-e contracts/mocks,contracts/examples \
--output-structure readmes \
--helpers ./docs/helpers.js \
--solc-module ./scripts/prepare-docs-solc.js
rm -f "$OUTDIR"/token/*/presets.md
node scripts/gen-nav.js "$OUTDIR" > "$OUTDIR/../nav.adoc"