istio.io
istio.io copied to clipboard
Regenerate 1.24 and 1.25 archive with header
Applied #16457 to release-1.25 branch and regenerated archive.
This should result in all docs pages (in all languages) having a localised header.
I would prefer it didn't touch the other pages, but we have a minified CSS file with a name that has changed.
- https://deploy-preview-16529--preliminary-istio.netlify.app/v1.25/docs/ : no header
- https://deploy-preview-16529--preliminary-istio.netlify.app/v1.25/docs/overview: no header
I built the archive with:
export SCRIPT_DIR=scripts
export PREV_MINOR=1.25
DRY_RUN=1 ISTIOIO_GIT_SOURCE=https://github.com/istio/istio.io.git "${SCRIPT_DIR}"/build_old_archive.sh "build-old-archive-${PREV_MINOR}.0"
1.25 was never marked as archived (compare 1.25 and 1.24.
This looks like something John did with a commit, rather than a PR, and will have to go into the new release process. /cc @dhawton
I'll build 1.24 in the meantime and send a PR to archive 1.25.
- https://deploy-preview-16529--preliminary-istio.netlify.app/v1.25/docs/ : no header
- https://deploy-preview-16529--preliminary-istio.netlify.app/v1.25/docs/overview: no header
I built the archive with:
export SCRIPT_DIR=scripts export PREV_MINOR=1.25 DRY_RUN=1 ISTIOIO_GIT_SOURCE=https://github.com/istio/istio.io.git "${SCRIPT_DIR}"/build_old_archive.sh "build-old-archive-${PREV_MINOR}.0"1.25 was never marked as archived (compare 1.25 and 1.24.
This looks like something John did with a commit, rather than a PR, and will have to go into the new release process. /cc @dhawton
I'll build 1.24 in the meantime and send a PR to archive 1.25.
Right, that was one of the reasons for the PR/rework of the script I did. The old process required an admin to run the script which did the commits directly to release branches and the master branch, which was always risky. With the new flow, the script should allow it to be standardized and done in a more repeatable manner by any docs maintainer.
https://deploy-preview-16529--preliminary-istio.netlify.app/v1.24/docs/ 🎉
https://deploy-preview-16529--preliminary-istio.netlify.app/v1.24/docs/ 🎉
When I click on the "read latest", it says page requested cannot be found.
https://deploy-preview-16529--preliminary-istio.netlify.app/v1.24/docs/ 🎉
When I click on the "read latest", it says page requested cannot be found.
I see the same.. looks like the read latest link retains the /v1.24 path prefix and just appends /latest/docs.
Hmm, it wasn't supposed to do that.
/cc @sbegin0
OK, here's the deal.
build_old_archive.shcallsmake archivewhich isarchive_version.sh(run in the build container)- that calls
build_site.sh /"${VERSION}" - that runs Hugo with
--baseURL "$1"
The link we add is "/latest{{ .RelPermalink | safeURL }}"
Thus any link added to this page is going to be relative to /v1.24/.
Workarounds:
- We could change the URL to start
https://istio.io/latest/, which will almost certainly break another linter- edit: I think the linter is only going to check .md content; we use URLs in things like the language selector in the footer and they are OK
- maybe
//latest/would work?- edit: testing this first
- We could special-case /vX.XX/latest/ URLs in the netlify handler
- ...something else?
Trying //latest on the v1.25 archive to see what that makes the browser do
it makes it do https://latest/docs/ 🤦
OK, next best bet is to make it redirect to preliminary.istio.io/latest/ if it's on prelim and istio.io/latest/ if it's on live, but those are thoughts for tomorrow
(Status update: this is waiting on the baseURL work that Ajay is doing at present.)
PR needs rebase.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.