-
Notifications
You must be signed in to change notification settings - Fork 1
Add redirects from /en paths to / #44
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
Conversation
Backwards compatibility for old links
WalkthroughTwo new HTML redirect pages were added under the documentation's extra path to handle navigation, each redirecting to their respective parent directories. The Sphinx configuration was updated to use the "_extra" directory for extra static files, ensuring these new HTML files are included in the documentation output. Changes
Poem
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
docs/_extra/en/latest/index.html (1)
1-14
: Prevent SEO indexing of redirect pages
Redirect pages serve only as navigation aids and shouldn’t be indexed, to avoid duplicate‐content penalties. Consider adding a robots noindex meta tag:<head> + <meta name="robots" content="noindex, nofollow"> <meta charset="utf-8"> <title>Redirecting...</title> <meta http-equiv="refresh" content="0; url=../../"> <script> window.location.href = '../../'; </script> </head>
docs/_extra/en/index.html (1)
1-14
: Prevent SEO indexing of redirect pages
Same as thelatest
redirect, these pages should include a noindex directive. For example:<head> + <meta name="robots" content="noindex, nofollow"> <meta charset="utf-8"> <title>Redirecting...</title> <meta http-equiv="refresh" content="0; url=../"> <script> window.location.href = '../'; </script> </head>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
docs/_extra/en/index.html
(1 hunks)docs/_extra/en/latest/index.html
(1 hunks)docs/conf.py
(1 hunks)
🔇 Additional comments (1)
docs/conf.py (1)
35-35
: Integrate extra static files for redirects
Enablinghtml_extra_path = ["_extra"]
ensures that the_extra
directory (containing your redirect pages) is copied verbatim into the built docs. This aligns perfectly with the PR objective of serving backward‐compatible/en
paths.
Backwards compatibility for old links
Summary by CodeRabbit