;make site-watch: build and watch the new site, not the old one

[ci skip]
This commit is contained in:
Simon Michael 2019-09-09 13:30:02 -07:00
parent 538e97f3ac
commit 84cf3fe722

View File

@ -751,14 +751,10 @@ site-live: Shake \
$(call def-help,site-live, update the local website html when source files are saved )
ls $(DOCSOURCEFILES) | entr ./Shake website
LIVERELOAD=livereloadx -p $(LIVERELOADPORT)
LIVERELOADPORT=8001
site-watch:
$(call def-help,site-livereload, open a browser on the local website html and rerender & reload the page on file change )
$(call def-help,site-watch, open a browser on the website (in ./site) and rerender & reload the page when source files change )
make site-live &
(sleep 1; $(BROWSE) http://localhost:$(LIVERELOADPORT)/) &
$(LIVERELOAD) -s site/_site/
make -C site html-watch
# This rule, for updating the live hledger.org site, gets called by:
# 1. github-post-receive (github webhook handler), when something is pushed