mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
make site-watch: site-liverender & site-livereload in one command
[ci skip]
This commit is contained in:
parent
688bdf86ec
commit
14086dbd74
13
Makefile
13
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
|
||||
|
Loading…
Reference in New Issue
Block a user