Skip to content

DOC Enable the canonical link for docs #30725

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 3 commits into from
Jan 28, 2025

Conversation

betatim
Copy link
Member

@betatim betatim commented Jan 27, 2025

Fixes #8958

This is an attempt to get the <link rel=canonical /> tag back in our docs pages. In a local build this seems to fix the issue and generate a correct URL.

Waiting to see what the rendered docs do. I am not sure I know what (un)expected consequences this could have/which pages we'd need to look at to make sure the generated link is correct for all of them.

cc @lesteve

Copy link

github-actions bot commented Jan 27, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 504afed. Link to the linter CI: here

@betatim
Copy link
Member Author

betatim commented Jan 28, 2025

I visited a few more random pages (main page, user guide page, API reference and example gallery) on the docs preview and they all contain the right canonical link.

@lesteve
Copy link
Member

lesteve commented Jan 28, 2025

Looks good, thanks!

I pushed a tweak to the comment and enabled auto-merge. Feel free to improve it further of course!

This will need to be back-ported to 1.5.X and 1.6.X branch for this to have an effect on the real world.

@lesteve lesteve enabled auto-merge (squash) January 28, 2025 08:03
@lesteve lesteve merged commit ed3e423 into scikit-learn:main Jan 28, 2025
31 checks passed
@betatim betatim deleted the add-canonical-link-back branch January 28, 2025 09:28
betatim added a commit to betatim/scikit-learn that referenced this pull request Jan 28, 2025
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
betatim added a commit to betatim/scikit-learn that referenced this pull request Jan 28, 2025
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants