mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-31 00:21:44 +01:00
feat(gh-pages): new github-pages target
For import of all docs to the github fixes #1
This commit is contained in:
6
Makefile
6
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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user