Skip to content

Commit 7972413

Browse files
authored
Meta: (Makefile) Add serve-dev rule (#696)
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 <gohugoio/hugo#10893>.)
1 parent a3e9bab commit 7972413

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ teams: | teams-clean $(patsubst %,$(TEAMS_DIR)/%.md,$(TEAMS)) ## generates numpy
3838
serve: prepare ## serve the website
3939
hugo $(BASEURLARG) --printI18nWarnings server -D
4040

41+
# Serve the site for development purposes (leaving submodules as-is, etc).
42+
serve-dev:
43+
python gen_config.py
44+
hugo $(BASEURLARG) --printI18nWarnings server --buildDrafts --disableFastRender --poll 1000ms
45+
4146
html: prepare ## build the website in ./public
4247
hugo $(BASEURLARG)
4348

0 commit comments

Comments
 (0)