Skip to content

Commit

Permalink
Move the gh-pages target into separate Makefile
Browse files Browse the repository at this point in the history
The VERSION ifdef guard was causing the Netlify build to fail. Split
the gh-pages build into a separate Makefile for now.

Signed-off-by: Torin Sandall <[email protected]>
  • Loading branch information
tsandall committed Apr 9, 2019
1 parent 83dbc54 commit bb5e30e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ clean: wasm-clean

.PHONY: site
site:
$(MAKE) -C docs VERSION=$(VERSION)
$(MAKE) -C docs -f Makefile.ghpages VERSION=$(VERSION)

######################################################
#
Expand Down
14 changes: 0 additions & 14 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
all:
ifndef VERSION
$(error VERSION is not set)
endif
rm -fr public resources generated
echo "- $(VERSION)" > data/releases.yaml
mkdir -p generated/docs
cp -r content/docs generated/docs/v$(VERSION)
hugo \
--contentDir generated \
--ignoreCache \
--minify
tar czvf site.tar.gz -C public .

clean:
rm -rf public

Expand Down
13 changes: 13 additions & 0 deletions docs/Makefile.ghpages
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
all:
ifndef VERSION
$(error VERSION is not set)
endif
rm -fr public resources generated
echo "- $(VERSION)" > data/releases.yaml
mkdir -p generated/docs
cp -r content/docs generated/docs/v$(VERSION)
hugo \
--contentDir generated \
--ignoreCache \
--minify
tar czvf site.tar.gz -C public .

0 comments on commit bb5e30e

Please sign in to comment.