Skip to content

Commit

Permalink
chore: allow make docs to be run in container (#12563)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney authored Apr 10, 2024
1 parent a8a8b6d commit 3530c61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,13 @@ check-format: format
# Documentation related commands

doc: ## Generates the config file documentation
ifeq ($(BUILD_IN_CONTAINER),true)
$(SUDO) docker run $(RM) $(TTY) -i \
-v $(shell pwd):/src/loki$(MOUNT_FLAGS) \
$(IMAGE_PREFIX)/loki-build-image:$(BUILD_IMAGE_VERSION) $@;
else
go run ./tools/doc-generator $(DOC_FLAGS_TEMPLATE) > $(DOC_FLAGS)
endif

docs: doc

Expand Down

0 comments on commit 3530c61

Please sign in to comment.