From f27fda8f34e084e1532f4e6528b93e156f062503 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 12 Mar 2015 10:02:22 +0100 Subject: [PATCH] feat(gh-pages): new github-pages target For import of all docs to the github fixes #1 --- Makefile | 6 ++---- src/mako/deps.mako | 6 ++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d0a2bfe75d..d305322c5c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/mako/deps.mako b/src/mako/deps.mako index 2b2014085d..ac430b83cb 100644 --- a/src/mako/deps.mako +++ b/src/mako/deps.mako @@ -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)