Skip to content

Commit

Permalink
copy latest version docs to docs directory
Browse files Browse the repository at this point in the history
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing committed Jul 12, 2024
1 parent a5f7a32 commit 63cf6c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/make/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ docs: docs.clean helm-readme-gen docs-api copy-current-release-docs ## Generate
.PHONY: copy-current-release-docs
copy-current-release-docs: ## Copy the current release docs to the docs folder
@$(LOG_TARGET)
rm -rf $(ROOT_DIR)/site/content/en/docs
mkdir -p $(ROOT_DIR)/site/content/en/docs
cp -r $(ROOT_DIR)/site/content/en/v1.0.2/** $(ROOT_DIR)/site/content/en/docs
@CURRENT_RELEASE=$(shell ls $(ROOT_DIR)/site/content/en | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$$' | sort | tail -n 1); \
echo "Copying the current release $$CURRENT_RELEASE docs to the docs folder"; \
rm -rf $(ROOT_DIR)/site/content/en/docs; \
mkdir -p $(ROOT_DIR)/site/content/en/docs; \
cp -r $(ROOT_DIR)/site/content/en/$$CURRENT_RELEASE/** $(ROOT_DIR)/site/content/en/docs

.PHONY: docs-release
docs-release: docs-release-prepare release-notes-docs docs-release-gen docs ## Generate Envoy Gateway Release Docs
Expand Down

0 comments on commit 63cf6c1

Please sign in to comment.