Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Oct 6, 2022
1 parent 5e50292 commit a8e52da
Show file tree
Hide file tree
Showing 61 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:

- name: Build docs
run: |
make build-docs LEDGER_ENABLED=false
make build-docs
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Build 🔧
run: |
git config --global --add safe.directory /__w/cosmos-sdk/cosmos-sdk
make build-docs LEDGER_ENABLED=false
make build-docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.0
Expand Down
20 changes: 5 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,12 @@ godocs:
@echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/cosmos/cosmos-sdk/types"
godoc -http=:6060

# This builds a docs site for each branch/tag in `./docs/versions`
# and copies each site to a version prefixed path. The last entry inside
# the `versions` file will be the default root index.html (and it should be main).
# Only redirects that are built into the "redirects" folder of each of
# the branches will be copied out to the root of the build at the end.
# This builds the docs.cosmos.network docs.
build-docs:
@cd docs && \
while read -r branch path_prefix; do \
echo "building branch $${branch}" ; \
(git clean -fdx && git reset --hard && git checkout $${branch} && npm install && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \
mkdir -p ~/output/$${path_prefix} ; \
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
cp ~/output/$${path_prefix}/index.html ~/output ; \
cp ~/output/$${path_prefix}/404.html ~/output ; \
cp -r ~/output/$${path_prefix}/redirects/* ~/output || true ; \
done < versions ;
@cd docs
@echo "building docs"
@npm run build
@mv build ~/output
@echo $(DOCS_DOMAIN) > ~/output/CNAME

.PHONY: build-docs
Expand Down
1 change: 0 additions & 1 deletion docs/docs/architecture

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a8e52da

Please sign in to comment.