feat(gh-pages): new github-pages target

For import of all docs to the github

fixes #1
This commit is contained in:
Sebastian Thiel
2015-03-12 10:02:22 +01:00
parent 0bc6d216c3
commit f27fda8f34
2 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: json-to-xml clean help api-deps regen-apis license update-json rebuild-docs
.PHONY: json-to-xml clean help api-deps regen-apis license update-json
.SUFFIXES:
include Makefile.helpers
@@ -28,7 +28,7 @@ help:
$(info )
$(info Targets)
$(info docs - cargo-doc on all APIs, assemble them together and generate index)
$(info rebuild-docs - clear out docs folder and regenerate. Should be done if API count changes, and before gh-import)
$(info github-pages - invoke ghp-import on all documentation)
$(info apis - make all APIs)
$(info cargo - run cargo on all APIs, use ARGS="args ..." to specify cargo arguments)
$(info regen-apis - clear out all generated apis, and regenerate them)
@@ -66,7 +66,5 @@ clean: clean-apis
-rm -Rf $(VENV_DIR)
-rm $(API_DEPS)
rebuild-docs: docs-clean docs
update-json:
etc/bin/update-json.sh $(GOOGLE_GO_APIS_REPO) etc/api

View File

@@ -82,10 +82,12 @@ ${doc_index}: ${' '.join(central_api_index(a[0]) for a in api_info)} $(MAKO_STAN
docs: ${doc_index}
docs-clean:
@rm -Rf ${doc_root}
rm -Rf ${doc_root}
github-pages: | docs-clean docs
ghp-import -n -p ${doc_root}
.PHONY += $(.PHONY) help-api clean-apis cargo apis docs docs-clean ${space_join(0)} ${space_join(1)} ${space_join(2)} ${space_join(3)}
.PHONY += $(.PHONY) github-pages help-api clean-apis cargo apis docs docs-clean ${space_join(0)} ${space_join(1)} ${space_join(2)} ${space_join(3)}
help-api:
$(info apis - make all APIs)