Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix docs script #18491

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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