Remove v2.0-preview docs and clean up old redirects#1105
Conversation
v2.0-preview was the docs branch for the v2 RC releases last year. v2 is now the main content of the docs, and v2.0 is EOL, so we should clean these up. Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
The netlify config had redirects for v1.10 through v1.12 to the latest docs. Most of these redirects would result in a 404 anyway, since the structure of the docs changed significantly in v2. Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
✅ Deploy Preview for crossplane ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
jbw976
left a comment
There was a problem hiding this comment.
Cool, this seems like the same experience folks would have going to a v2.0 docs link which was EOL'd with the v2.3 release - so status quo would be achieved.
However, should we consider just reviving this redirect process that seems to have died with v1.12? e.g. should we keep these redirects, add ones for all other EOL'd versions since then, and update the release issue template to include adding a new redirect with each release? 🤔
that may be a nice way to go here, to at least give a chance for an old link, that still has a content path that exists on newer versions, to work. what do you think?
Add a Netlify redirect using placeholders and globs to redirect all requests for EOL (deleted) docs versions to latest. This might still return 404 for docs that have moved (e.g., most v1 content), but will work for many common cases where our docs are relatively stable. The redirect rule relies on the fact that exists. Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
@jbw976 I've pushed a commit that adds a wildcard redirect to cover all old versions. It will still return a 404 if a page doesn't exist in the latest docs, of course, but should work for many common cases since most of our docs are pretty stable. This redirect relies on the fact that Netlify won't redirect requests for pages that exist. I tested it by manually building the docs with the |

v2.0-preview was the docs branch for the v2 RC releases last year. v2 is now the main content of the docs, and v2.0 is EOL, so we should clean these up.
While we're here, clean up old redirects for EOL v1.x releases and replace them with a generic redirect that covers all EOL versions.