Skip to content

Commit

Permalink
Add a gh-pages target.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drup authored and c-cube committed Mar 8, 2019
1 parent cb052da commit 64baa13
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ _build
man/
*.install
.merlin
.gh-pages
18 changes: 17 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,20 @@ watch:
make all; \
done

.PHONY: benchs tests examples update_next_tag push_doc push_stable watch
REPO[email protected]:c-cube/iter
DOCDIR=.gh-pages

$(DOCDIR)/.git:
mkdir -p $(DOCDIR)
cd $(DOCDIR) && (\
git clone -b gh-pages $(REPO).git . \
)

gh-pages: $(DOCDIR)/.git doc
git -C $(DOCDIR) pull
cp -r _build/default/_doc/_html/* $(DOCDIR)/doc/dev/
git -C $(DOCDIR) add --all
git -C $(DOCDIR) commit -a -m "gh-page updates"
git -C $(DOCDIR) push origin gh-pages

.PHONY: benchs tests examples update_next_tag push_doc push_stable watch gh-pages

0 comments on commit 64baa13

Please sign in to comment.