Skip to content

Commit 0f73356

Browse files
committed
Add hot reloading to Makefile
1 parent dd95a9d commit 0f73356

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ docs-test: ## Build documentation with strict validation (CI mode)
5656
mkdir -p $(DOCS_OUTPUT)
5757
docker run --user $(DOCKER_USER) --rm --pull always -v "$(shell pwd)":/project -t $(DOCKER_IMAGE) --config=$(DOCS_DIR) --no-progress --fail-on-log
5858

59+
docs-hot: ## Generate projects documentation with hot reloading
60+
docker run --rm -it --pull always \
61+
-v "./Documentation:/project/Documentation" \
62+
-v "./Documentation-GENERATED-temp:/project/Documentation-GENERATED-temp" \
63+
-p 1337:1337 ghcr.io/typo3-documentation/render-guides:latest --config="Documentation" --watch
64+
5965
.PHONY: docs-open
6066
docs-open: ## Open rendered documentation in browser
6167
@if [ -f "$(DOCS_OUTPUT)/Index.html" ]; then \

0 commit comments

Comments
 (0)