Skip to content

Commit ee8d5c2

Browse files
authored
Merge pull request #14 from AnoshanJ/feat/anoshan-doc
Update versioning commands in Makefile to set latestVersion and quick…
2 parents 262d9f5 + 8c8947f commit ee8d5c2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

documentation/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ endif
6565
DOCKER_TAG_NO_V=$$(echo $(DOCKER_TAG) | sed 's/^v//'); \
6666
find ./versioned_docs/version-$(VERSION) -type f \( -name "*.md" -o -name "*.mdx" \) ! -name "_constants.md" -exec \
6767
$(SED_INPLACE) "s/v0\.0\.0-dev/$(DOCKER_TAG)/g; s/0\.0\.0-dev/$$DOCKER_TAG_NO_V/g" {} \;; \
68+
$(SED_INPLACE) "s/latestVersion: '.*'/latestVersion: '$(VERSION)'/" versioned_docs/version-$(VERSION)/_constants.md; \
69+
$(SED_INPLACE) "s/quickStartDockerTag: '.*'/quickStartDockerTag: '$(DOCKER_TAG)'/" versioned_docs/version-$(VERSION)/_constants.md; \
6870
$(SED_INPLACE) "s/latestVersion: '.*'/latestVersion: '$(VERSION)'/" docs/_constants.md; \
6971
$(SED_INPLACE) "s/quickStartDockerTag: '.*'/quickStartDockerTag: '$(DOCKER_TAG)'/" docs/_constants.md; \
7072
echo "✓ Version $(VERSION) created successfully!"; \
@@ -97,6 +99,8 @@ endif
9799
@DOCKER_TAG_NO_V=$$(echo $(DOCKER_TAG) | sed 's/^v//'); \
98100
find ./versioned_docs/version-$(VERSION) -type f \( -name "*.md" -o -name "*.mdx" \) ! -name "_constants.md" -exec \
99101
$(SED_INPLACE) "s/v0\.0\.0-dev/$(DOCKER_TAG)/g; s/0\.0\.0-dev/$$DOCKER_TAG_NO_V/g" {} \;
102+
@$(SED_INPLACE) "s/latestVersion: '.*'/latestVersion: '$(VERSION)'/" versioned_docs/version-$(VERSION)/_constants.md
103+
@$(SED_INPLACE) "s/quickStartDockerTag: '.*'/quickStartDockerTag: '$(DOCKER_TAG)'/" versioned_docs/version-$(VERSION)/_constants.md
100104
@$(SED_INPLACE) "s/latestVersion: '.*'/latestVersion: '$(VERSION)'/" docs/_constants.md
101105
@$(SED_INPLACE) "s/quickStartDockerTag: '.*'/quickStartDockerTag: '$(DOCKER_TAG)'/" docs/_constants.md
102106
@echo "✓ Version $(VERSION) updated successfully!"

0 commit comments

Comments
 (0)