Skip to content

Commit

Permalink
fix pre and post scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Sep 21, 2023
1 parent 37c8e93 commit b02ff2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 150 deletions.
2 changes: 1 addition & 1 deletion docs/post.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

find docs/build/modules ! -name '_category_.json' -type f -exec rm -rf {} +
find build/modules ! -name '_category_.json' -type f -exec rm -rf {} +
rm -rf build/tooling/01-cosmovisor.md
rm -rf build/tooling/02-confix.md
rm -rf build/tooling/03-hubl.md
Expand Down
11 changes: 6 additions & 5 deletions docs/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@
## Create modules pages
for D in ../x/*; do
if [ -d "${D}" ]; then
MODDOC=docs/build/modules/$(echo $D | awk -F/ '{print $NF}')
MODDOC=build/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 ./build/modules/auth/1-vesting.md
cp ../x/auth/tx/README.md ./build/modules/auth/2-tx.md
cp -r ../x/auth/vesting/README.md ./build/modules/auth/1-vesting.md
cp -r ../x/auth/tx/README.md ./build/modules/auth/2-tx.md

## Add modules page list
cat ../x/README.md | sed 's/\.\.\/\/build\/building-modules\/README\.md/\/building-modules\/intro\.html/g' > ./modules/README.md
cat ../x/README.md | sed 's/\.\.\/\/build\/building-modules\/README\.md/\/building-modules\/intro\.html/g' > ./build/modules/README.md

## Add tooling documentation
cp ../tools/cosmovisor/README.md ./build/tooling/01-cosmovisor.md
cp ../tools/confix/README.md ./build/tooling/02-confix.md
cp ../tools/hubl/README.md ./build/tooling/03-hubl.md
wget -O /user/run-node/04-rosetta.md https://raw.githubusercontent.com/cosmos/rosetta/main/README.md

wget -x -O ./user/run-node/04-rosetta.md https://raw.githubusercontent.com/cosmos/rosetta/main/README.md

## Add package documentation
cp ../client/v2/README.md ./learn/advanced/17-autocli.md
Expand Down
144 changes: 0 additions & 144 deletions docs/user/run-node/04-rosetta.md

This file was deleted.

0 comments on commit b02ff2c

Please sign in to comment.