Skip to content

Better redirects support for multiversion#515

Merged
dgarcia360 merged 4 commits intoscylladb:masterfrom
dgarcia360:redirections-multiversion-support
Jun 28, 2022
Merged

Better redirects support for multiversion#515
dgarcia360 merged 4 commits intoscylladb:masterfrom
dgarcia360:redirections-multiversion-support

Conversation

@dgarcia360
Copy link
Copy Markdown
Collaborator

@dgarcia360 dgarcia360 commented Jun 28, 2022

Closes #181

Motivation

Before, redirects were part of the theme. This means that, for every version, the same redirects were being created, giving us little control if we wanted to redirect a page from the previous version to a different URL.

Now, we are using a separate third-party package to create redirections. Instead of creating the same redirections for each version, we generate them at the end once the docs are built. This will allow us to have better control of the redirects per version.

How to test this PR

Once we merge this PR, https://sphinx-theme.scylladb.com/stable/test-redirect.html should redirect to https://sphinx-theme.scylladb.com/stable/index.html

Distributing this improvement

This change introduces breaking changes in the scylla/scylla-docs project. For this reason, I'm updating the minor version number so that the theme release does not propagate automatically.

Then, we'll submit a PR in the scylla-docs project that installs the new redirects extension as part of the publication process.

@dgarcia360 dgarcia360 requested review from annastuchlik and tzach June 28, 2022 09:53
@annastuchlik
Copy link
Copy Markdown
Collaborator

@dgarcia360 Could you merge this PR so that we can see the result?

@dgarcia360 dgarcia360 merged commit 4e6b71a into scylladb:master Jun 28, 2022
@dgarcia360 dgarcia360 deleted the redirections-multiversion-support branch June 28, 2022 14:35
@annastuchlik
Copy link
Copy Markdown
Collaborator

@dgarcia360 Yes, I can confirm that. Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support redirections when the name of the branch / tag changes

2 participants