diff --git a/Makefile b/Makefile index 115fec83e0..a84e3b8374 100644 --- a/Makefile +++ b/Makefile @@ -174,7 +174,7 @@ clean: wasm-clean .PHONY: site site: - $(MAKE) -C docs VERSION=$(VERSION) + $(MAKE) -C docs -f Makefile.ghpages VERSION=$(VERSION) ###################################################### # diff --git a/docs/Makefile b/docs/Makefile index f18a3ada7c..9dc4d94745 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -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 diff --git a/docs/Makefile.ghpages b/docs/Makefile.ghpages new file mode 100644 index 0000000000..0b19bceab5 --- /dev/null +++ b/docs/Makefile.ghpages @@ -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 . \ No newline at end of file