Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/README.adoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Variables embedded for GitHub compatibility
:istio_latest_version: 1.26.3
:istio_latest_version_revision_format: 1-26-3
:istio_latest_tag: v1.26-latest
:istio_latest_minus_one_version: 1.26.2
:istio_latest_minus_one_version_revision_format: 1-26-2
:istio_latest_version: 1.28.0
:istio_latest_version_revision_format: 1-28-0
:istio_latest_tag: v1.28-latest
:istio_latest_minus_one_version: 1.27.3
:istio_latest_minus_one_version_revision_format: 1-27-3

link:../[Return to Project Root]

Expand Down
5 changes: 3 additions & 2 deletions hack/update-istio-in-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ echo "LATEST_RELEASE_NAME: $LATEST_RELEASE_NAME"
echo "LATEST_MINUS_ONE_VERSION: $LATEST_MINUS_ONE_VERSION"
echo "LATEST_MINUS_ONE_VERSION_REVISION_FORMAT: $LATEST_MINUS_ONE_VERSION_REVISION_FORMAT"

for file in docs/**/*.adoc; do
# Find all .adoc files under docs/ (top-level and nested) and update them
while IFS= read -r -d '' file; do
echo "Updating file: $file"
"$SED_CMD" -i -E "s/(:istio_latest_version: ).*/\1$LATEST_VERSION/" "$file"
"$SED_CMD" -i -E "s/(:istio_latest_version_revision_format: ).*/\1$LATEST_VERSION_REVISION_FORMAT/" "$file"
"$SED_CMD" -i -E "s/(:istio_latest_tag: ).*/\1$LATEST_TAG/" "$file"
"$SED_CMD" -i -E "s/(:istio_release_name: ).*/\1$LATEST_RELEASE_NAME/" "$file"
"$SED_CMD" -i -E "s/(:istio_latest_minus_one_version: ).*/\1$LATEST_MINUS_ONE_VERSION/" "$file"
"$SED_CMD" -i -E "s/(:istio_latest_minus_one_version_revision_format: ).*/\1$LATEST_MINUS_ONE_VERSION_REVISION_FORMAT/" "$file"
done
done < <(find docs -type f -name '*.adoc' -print0)
echo "Documentation files updated successfully."
Loading