Skip to content

Commit 286bcef

Browse files
chmouelpipelines-as-code[bot]
authored andcommitted
Revert using script to start hugo server
Let's do as before since the script fail to work after a running for a while: Watching for changes in /docs/{archetypes,content,layouts,static,themes} Watching for config changes in docs/config.toml Environment: "development" Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at //localhost:1313/ (bind address 127.0.0.1) Press Ctrl+C to stop Change detected, rebuilding site. 2025-03-11 11:24:35.657 +0100 Source changed "docs/content/docs/guide/running.md": WRITE make: *** [Makefile:196: dev-docs] Error 141 Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent b3bcd77 commit 286bcef

File tree

2 files changed

+7
-56
lines changed

2 files changed

+7
-56
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,13 @@ download-hugo: ## Download hugo software
192192

193193
.PHONY: dev-docs
194194
dev-docs: download-hugo ## preview live your docs with hugo
195-
@echo "Starting hugo development server"
196-
./hack/start-hugo-dev-server.sh $(HUGO_BIN) server -s docs/
195+
@$(HUGO_BIN) server -s docs/ &
196+
@echo "Sleeping for 2s....";sleep 2 ; \
197+
if type -p xdg-open 2>/dev/null >/dev/null; then \
198+
xdg-open http://localhost:1313; \
199+
elif type -p open 2>/dev/null >/dev/null; then \
200+
open http://localhost:1313; \
201+
fi
197202

198203
##@ Misc
199204

hack/start-hugo-dev-server.sh

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)