forked from reactjs/react-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore] improve publish docs commands.
- Loading branch information
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,22 +110,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 [email protected]:reactjs/react-modal gh-pages --force | ||
cd .. | ||
|
||
publish-all: publish publish-docs | ||
|
||
clean-sources: | ||
@rm -rf lib/* dist/* _book | ||
clean-docs: | ||
@rm -rf _book | ||
|
||
clean-coverage: | ||
@rm -rf ./coverage/* | ||
|
||
clean-build: | ||
@rm -rf .version .branch lib/* | ||
|
||
clean: clean-sources | ||
@rm -rf .version .branch ./coverage/* | ||
clean: clean-build clean-docs clean-coverage |