From 263a1df7a5737f37916e653e85ccff2852276fc3 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 27 Sep 2016 00:32:03 -0700 Subject: gh-pages helper --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e7d1cba..fff0e0b 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,16 @@ RONN = ronn MANPAGE = einhyrningsins.1 -$(MANPAGE): doc/$(MANPAGE).ronn +doc/$(MANPAGE): doc/$(MANPAGE).ronn $(RONN) -r $< -$(MANPAGE).html: doc/$(MANPAGE).ronn - $(RONN) -5 $< +doc/$(MANPAGE).html: doc/$(MANPAGE).ronn + $(RONN) --style toc -5 $< + +gh-pages: doc/$(MANPAGE).html + cp doc/$(MANPAGE).html /tmp/index.html + git checkout gh-pages + cp /tmp/index.html index.html + git add -u index.html + git commit -m "updating rendered manpage for github docs" + git checkout master -- cgit v1.2.3