Skip to content

Commit

Permalink
fix: fix docs script (#18491)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored Nov 16, 2023
1 parent aaa56b8 commit d367589
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
## Create modules pages
for D in ../x/*; do
if [ -d "${D}" ]; then
MODULE_DIRECTORY=docs/build/modules/$DIR_NAME
rm -rf "$MODULE_DIRECTORY"
mkdir -p "$MODULE_DIRECTORY"
if [ -f "$D"/README.md ]; then
cp -r "$D"/README.md "$MODULE_DIRECTORY"
DIR_NAME=$(echo $D | awk -F/ '{print $NF}')
MODDOC=docs/build/modules/$DIR_NAME
rm -rf $MODDOC
mkdir -p $MODDOC
if [ -f "$D/README.md" ]; then
cp -r $D/README.md $MODDOC/
fi
fi
done


## Vesting is a submodule of auth, but we still want to display it in docs
## TODO to be removed in https://github.com/cosmos/cosmos-sdk/issues/9958
cp ../x/auth/vesting/README.md ./docs/build/modules/auth/1-vesting.md
Expand Down

0 comments on commit d367589

Please sign in to comment.