cosmos-sdk/docs/pre.sh
mergify[bot] 7407866317
feat(client,simapp): inject keyring in autocli opts (backport #17351) (#17382)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-08-14 14:44:58 +00:00

42 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
## Create modules pages
for D in ../x/*; do
if [ -d "${D}" ]; then
MODDOC=docs/modules/$(echo $D | awk -F/ '{print $NF}')
rm -rf $MODDOC
mkdir -p $MODDOC && cp -r $D/README.md "$_"
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/modules/auth/1-vesting.md
cp ../x/auth/tx/README.md ./docs/modules/auth/2-tx.md
## Add modules page list
cat ../x/README.md | sed 's/\.\.\/docs\/building-modules\/README\.md/\/building-modules\/intro\.html/g' > ./docs/modules/README.md
## Add tooling documentation
cp ../tools/cosmovisor/README.md ./docs/tooling/01-cosmovisor.md
cp ../tools/confix/README.md ./docs/tooling/02-confix.md
cp ../tools/hubl/README.md ./docs/tooling/03-hubl.md
wget -O docs/run-node/04-rosetta.md https://raw.githubusercontent.com/cosmos/rosetta/main/README.md
## Add package documentation
cp ../client/v2/README.md ./docs/core/17-autocli.md
cp ../depinject/README.md ./docs/packages/01-depinject.md
cp ../collections/README.md ./docs/packages/02-collections.md
cp ../orm/README.md ./docs/packages/03-orm.md
## Add architecture documentation
cp -r ./architecture ./docs
## Add spec documentation
cp -r ./spec ./docs
## Add rfc documentation
cp -r ./rfc ./docs
## Add SDK migration documentation
cp -r ../UPGRADING.md ./docs/migrations/02-upgrading.md