chore: allow make docs to be run in container (#12563)

pull/12568/head
Trevor Whitney 1 year ago committed by GitHub
parent a8a8b6dde0
commit 3530c61500
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      Makefile

@ -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

Loading…
Cancel
Save