mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +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 )
|
$(call def-help,site-liverender, update the local website html when source files are saved )
|
||||||
ls $(DOCSOURCEFILES) | entr ./Shake website
|
ls $(DOCSOURCEFILES) | entr ./Shake website
|
||||||
|
|
||||||
|
LIVERELOAD=livereloadx -p $(LIVERELOADPORT)
|
||||||
|
LIVERELOADPORT=8001
|
||||||
|
|
||||||
site-livereload: \
|
site-livereload: \
|
||||||
$(call def-help,site-livereload, open a browser on the local website html and reload the page when it updates )
|
$(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) &
|
(sleep 1; open http://localhost:$(LIVERELOADPORT)) &
|
||||||
livereloadx -p 8001 --static site/_site
|
$(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:
|
# This rule, for updating the live hledger.org site, gets called by:
|
||||||
# 1. github-post-receive (github webhook handler), when something is pushed
|
# 1. github-post-receive (github webhook handler), when something is pushed
|
||||||
|
Loading…
Reference in New Issue
Block a user