Skip to content

Commit

Permalink
feat(gh-pages): new github-pages target
Browse files Browse the repository at this point in the history
For import of all docs to the github

fixes #1
  • Loading branch information
Byron committed Mar 12, 2015
1 parent 0bc6d21 commit f27fda8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
6 changes: 4 additions & 2 deletions src/mako/deps.mako
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f27fda8

Please sign in to comment.