From 3b49889e4aac76c9a485f96001c953b3b61e3694 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Wed, 15 Nov 2023 17:16:05 -0600 Subject: [PATCH] Meta: (Makefile) Add serve-dev rule This rule does not touch submodules, which allows the site to be served with a different commit in a submodule. It also sets a couple of Hugo options which make the server's automatic rebuilding and refreshing more reliable. (See .) --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 772a335ecf..b6d5f30c86 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,11 @@ teams: | teams-clean $(patsubst %,$(TEAMS_DIR)/%.md,$(TEAMS)) ## generates numpy serve: prepare ## serve the website hugo $(BASEURLARG) --printI18nWarnings server -D +# Serve the site for development purposes (leaving submodules as-is, etc). +serve-dev: + python gen_config.py + hugo $(BASEURLARG) --printI18nWarnings server --buildDrafts --disableFastRender --poll 1000ms + html: prepare ## build the website in ./public hugo $(BASEURLARG)