Skip to content

mark 1.25 as archived #16538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025
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
6 changes: 3 additions & 3 deletions data/args.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ copyright_year: 2025
# when archive=true, we're building for archive.istio.io
# when archive_landing=true, we're building the landing page for archive.istio.io
preliminary: false
archive: false
archive: true
archive_landing: false

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

# GitHub branch names used when the docs have links to GitHub
source_branch_name: release-1.25
Expand Down
17 changes: 14 additions & 3 deletions scripts/lint_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
set -e

FAILED=0
ARCHIVE=0

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

if [[ "$#" -ne 0 ]]; then
LANGS="$*"
Expand Down Expand Up @@ -204,13 +212,16 @@ if [ -d ./public ]; then
printf -v ignore_files "/^.\/public\/%s/," "${SKIP_LANGS[@]}"; ignore_files="${ignore_files%,}"
fi
echo "Running linkinator..."
if [[ ${CHECK_EXTERNAL_LINKS:-} == "true" ]]; then
if [[ ${ARCHIVE:-} -eq 1 ]]; then
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
FAILED=1
fi
elif [[ ${CHECK_EXTERNAL_LINKS:-} == "true" ]]; then
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
FAILED=1
fi
else
#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
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
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
FAILED=1
fi
fi
Expand Down