Skip to content
Permalink
Browse files

make site-watch: site-liverender & site-livereload in one command

[ci skip]
  • Loading branch information...
simonmichael committed Apr 25, 2019
1 parent 688bdf8 commit 14086dbd7432e22d8bfa166991f173e732027bb0
Showing with 11 additions and 2 deletions.
  1. +11 −2 Makefile
@@ -726,10 +726,19 @@ site-liverender: Shake \
$(call def-help,site-liverender, update the local website html when source files are saved )
ls $(DOCSOURCEFILES) | entr ./Shake website

LIVERELOAD=livereloadx -p $(LIVERELOADPORT)
LIVERELOADPORT=8001

site-livereload: \
$(call def-help,site-livereload, open a browser on the local website html and reload the page when it updates )
(sleep 1; open http://localhost:8001) &
livereloadx -p 8001 --static site/_site
(sleep 1; open http://localhost:$(LIVERELOADPORT)) &
$(LIVERELOAD) -s site/_site

site-watch:
$(call def-help,site-livereload, open a browser on the local website html and rerender & reload the page on file change )
make site-liverender &
(sleep 1; $(BROWSE) http://localhost:$(LIVERELOADPORT)/) &
$(LIVERELOAD) -s site/_site/

# This rule, for updating the live hledger.org site, gets called by:
# 1. github-post-receive (github webhook handler), when something is pushed

0 comments on commit 14086db

Please sign in to comment.
You can’t perform that action at this time.