From 84cf3fe72299fc48d52194d9a5eb9ec006187e52 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 9 Sep 2019 13:30:02 -0700 Subject: [PATCH] ;make site-watch: build and watch the new site, not the old one [ci skip] --- Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 1b875f29f..fadfe0f43 100644 --- a/Makefile +++ b/Makefile @@ -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