You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Whether to pull the latest container image before running the container.
69
+
ifeq ($(origin PULL), undefined)
70
+
exportPULL := true
71
+
endif
72
+
68
73
.PHONY: docs-rm
69
74
docs-rm: ## Remove the docs container.
70
75
$(PODMAN) rm -f $(DOCS_CONTAINER)
@@ -81,13 +86,12 @@ make-docs:
81
86
fi
82
87
83
88
.PHONY: docs
84
-
docs: ## Serve documentation locally, which includes pulling the latest `DOCS_IMAGE` (default: `grafana/docs-base:latest`) container image. See also `docs-no-pull`.
89
+
docs: ## Serve documentation locally, which includes pulling the latest `DOCS_IMAGE` (default: `grafana/docs-base:latest`) container image. To not pull the image, set `PULL=false`.
90
+
ifeq ($(PULL), true)
85
91
docs: docs-pull make-docs
86
-
$(CURDIR)/make-docs $(PROJECTS)
87
-
88
-
.PHONY: docs-no-pull
89
-
docs-no-pull: ## Serve documentation locally without pulling the `DOCS_IMAGE` (default: `grafana/docs-base:latest`) container image.
90
-
docs-no-pull: make-docs
92
+
else
93
+
docs: make-docs
94
+
endif
91
95
$(CURDIR)/make-docs $(PROJECTS)
92
96
93
97
.PHONY: docs-debug
@@ -96,13 +100,19 @@ docs-debug: make-docs
96
100
WEBSITE_EXEC='hugo server --bind 0.0.0.0 --port 3002 --debug'$(CURDIR)/make-docs $(PROJECTS)
97
101
98
102
.PHONY: doc-validator
99
-
doc-validator: ## Run doc-validator on the entire docs folder.
103
+
doc-validator: ## Run doc-validator on the entire docs folder which includes pulling the latest `DOC_VALIDATOR_IMAGE` (default: `grafana/doc-validator:latest`) container image. To not pull the image, set `PULL=false`.
vale: ## Run vale on the entire docs folder which includes pulling the latest `VALE_IMAGE` (default: `grafana/vale:latest`) container image. To not pull the image, set `PULL=false`.
0 commit comments