Skip to content
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

Redirect a selection of old pages to new ones #257

Closed
wants to merge 2 commits into from

Conversation

MetRonnie
Copy link
Member

This partially addresses #168

Redirects the most important pages in the Cylc 7 and Cylc 8 early beta docs to their current counterparts, so when you switch versions from those to latest, you won't face a 404 anymore.

I think it's possible to do the opposite, but would require manually adding the current counterparts as html files that redirect to the old pages, in the Cylc 7 folders on the gh-pages branch

(Tests will fail until #253 merged)

@MetRonnie MetRonnie added the infrastructure Build system, Sphinx extensions, Deployment etc label Jul 2, 2021
@MetRonnie MetRonnie self-assigned this Jul 2, 2021
Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@MetRonnie

This comment has been minimized.

@oliver-sanders
Copy link
Member

Could convert this logic into JS and inject it into the 404 file, slightly ugly but it saves dumping redirect files about the place and makes redirecting files from removed directories a little easier.

https://github.com/cylc/cylc.github.io/blob/master/404.html

@MetRonnie MetRonnie marked this pull request as draft July 20, 2021 12:26
@MetRonnie MetRonnie added this to the 8.0.0 milestone Nov 12, 2021
@hjoliver hjoliver modified the milestones: 8.0rc1, 8.x Jan 27, 2022
@MetRonnie MetRonnie added the wontfix This will not be worked on label Dec 4, 2023
@MetRonnie MetRonnie closed this Dec 4, 2023
@oliver-sanders oliver-sanders removed this from the pending milestone Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Build system, Sphinx extensions, Deployment etc wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants