Skip to content

Commit

Permalink
Merge 8b4bfdd into ec6b8e5
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Jun 16, 2017
2 parents ec6b8e5 + 8b4bfdd commit b6e0086
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,33 @@ pre-publish: clean .branch .version deps-project tests-ci build

publish: pre-publish publish-version publish-finished

publish-docs: deps-docs build-docs
init-docs-repo:
@mkdir _book

pre-publish-docs: clean-docs init-docs-repo deps-docs

publish-docs: clean pre-publish-docs build-docs
@echo "[Publishing docs]"
git init _book
cd _book
@make -C _book -f ../Makefile _publish-docs

_publish-docs:
git init .
git commit --allow-empty -m 'update book'
git checkout -b gh-pages
touch .nojekyll
git add .
git commit -am 'update book'
git push git@github.com:reactjs/react-modal gh-pages --force
cd ..

publish-all: publish publish-docs

clean:
@rm -rf .version .branch ./coverage/*
clean-docs:
@rm -rf _book

clean-coverage:
@rm -rf ./coverage/*

clean-build:
@rm -rf .version .branch

clean: clean-build clean-docs clean-coverage

0 comments on commit b6e0086

Please sign in to comment.