Skip to content

Commit 7db9a40

Browse files
authored
feat: support multi-release versions (#698)
Signed-off-by: bitliu <[email protected]>
1 parent 7c6c37a commit 7db9a40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/make/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
DOCS_OUTPUT_DIR := docs/html
2+
RELEASE_VERSIONS ?= $(foreach v,$(wildcard ${ROOT_DIR}/docs/*),$(notdir ${v}))
23

34
##@ Docs
45

56
.PHONY: docs
67
docs: docs.clean $(tools/sphinx-build) ## Generate Envoy Gateway Docs Sources
7-
$(eval RELEASE_VERSIONS := latest $(shell cat VERSION))
88
mkdir -p $(DOCS_OUTPUT_DIR)
99
cp docs/index.html $(DOCS_OUTPUT_DIR)/index.html
1010
@for VERSION in $(RELEASE_VERSIONS); do \

0 commit comments

Comments
 (0)