mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Write make target for syncing with gh-pages branch
This commit is contained in:
parent
60505dfb0a
commit
0a8e24d11d
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -1,6 +1,6 @@
|
||||||
.DEFAULT_GOAL := peppermint
|
.DEFAULT_GOAL := peppermint
|
||||||
|
|
||||||
.PHONY: setupApiDoc peppermint docs
|
.PHONY: setupApiDoc peppermint docs gh-pages
|
||||||
|
|
||||||
ApiDocPresent := $(shell sh -c apidoc --help 1\>/dev/null && rm -rf doc/)
|
ApiDocPresent := $(shell sh -c apidoc --help 1\>/dev/null && rm -rf doc/)
|
||||||
|
|
||||||
|
@ -21,3 +21,11 @@ ifndef ApiDocPresent
|
||||||
npm install apidoc --global
|
npm install apidoc --global
|
||||||
endif
|
endif
|
||||||
@echo [peppermint] Check complete
|
@echo [peppermint] Check complete
|
||||||
|
|
||||||
|
gh-pages:
|
||||||
|
@echo [peppermint/gh-pages] Syncing master branch with gh-pages branch
|
||||||
|
git checkout gh-pages
|
||||||
|
git rebase master
|
||||||
|
git push origin gh-pages
|
||||||
|
git checkout master
|
||||||
|
@echo '[peppermint/gh-pages] Sync complete.'
|
||||||
|
|
Loading…
Reference in a new issue