Skip to content

Commit 9364be4

Browse files
authored
mark 1.25 as archived (#16538)
* mark 1.25 as archived * Update lint script for archive sites
1 parent 988c79c commit 9364be4

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

data/args.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ copyright_year: 2025
1717
# when archive=true, we're building for archive.istio.io
1818
# when archive_landing=true, we're building the landing page for archive.istio.io
1919
preliminary: false
20-
archive: false
20+
archive: true
2121
archive_landing: false
2222

2323
# When archive=true above, these values must be filled in
24-
archive_date: YYYY-MM-DD
25-
archive_search_refinement: "V1.1"
24+
archive_date: 2025-05-08
25+
archive_search_refinement: "V1.25"
2626

2727
# GitHub branch names used when the docs have links to GitHub
2828
source_branch_name: release-1.25

scripts/lint_site.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
set -e
1818

1919
FAILED=0
20+
ARCHIVE=0
21+
22+
# If the archive flag is set, we allow links to `/latest/` that won't exist
23+
# at the time of linting, but will exist when the archive is copied to the
24+
# current serving branch.
25+
if grep -q "^archive: true" data/args.yml 2>/dev/null; then
26+
ARCHIVE=1
27+
fi
2028

2129
if [[ "$#" -ne 0 ]]; then
2230
LANGS="$*"
@@ -204,13 +212,16 @@ if [ -d ./public ]; then
204212
printf -v ignore_files "/^.\/public\/%s/," "${SKIP_LANGS[@]}"; ignore_files="${ignore_files%,}"
205213
fi
206214
echo "Running linkinator..."
207-
if [[ ${CHECK_EXTERNAL_LINKS:-} == "true" ]]; then
215+
if [[ ${ARCHIVE:-} -eq 1 ]]; then
216+
if ! linkinator public/ -r -s 'github.com localhost:3000 localhost:5601 localhost:8001 localhost:9080 localhost:9081 en.wikipedia.org my-istio-logs-database.io ^((?!localhost).)*$ /latest/' --silent --concurrency 25; then
217+
FAILED=1
218+
fi
219+
elif [[ ${CHECK_EXTERNAL_LINKS:-} == "true" ]]; then
208220
if ! linkinator public/ -r -s 'github.com localhost:3000 localhost:5601 localhost:8001 localhost:9080 localhost:9081 en.wikipedia.org my-istio-logs-database.io' --silent --concurrency 25; then
209221
FAILED=1
210222
fi
211223
else
212-
#TODO: Remove .../workload-selector/ from ignored links. PRs take a long time to get through istio/api, and a link is broken from there. Once this PR is complete, remove it: https://github.com/istio/api/pull/1405
213-
if ! linkinator public/ -r -s 'github.com localhost:3000 localhost:5601 localhost:8001 localhost:9080 localhost:9081 en.wikipedia.org my-istio-logs-database.io ^((?!localhost).)*$ /docs/reference/config/type/v1beta1/workload-selector/' --silent --concurrency 25; then
224+
if ! linkinator public/ -r -s 'github.com localhost:3000 localhost:5601 localhost:8001 localhost:9080 localhost:9081 en.wikipedia.org my-istio-logs-database.io ^((?!localhost).)*$' --silent --concurrency 25; then
214225
FAILED=1
215226
fi
216227
fi

0 commit comments

Comments
 (0)