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

feature/website support for /latest/ and /absolute-latest/ redirection #965

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

rclabo
Copy link
Contributor

@rclabo rclabo commented Sep 27, 2024

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a change, please open an issue to discuss the change or find an existing issue.

Summary of the changes (Less than 80 chars)
Website /latest/ using .htaccess rewrite rules

Description

I don't think there is an issue for this one but it's a feature we have been wanting for a while.

This pull request introduces a new URL redirection feature for the Lucene.NET website. It sets up two redirects into the API documentation using .htaccess rewrite rules. The implementation adds two useful URL paths:
• /doc/latest/: Redirects users to the API documentation for the most recent officially released version of Lucene.NET.
• /doc/absolute-latest/: Directs users to the absolute latest version of the API documentation, which may include pre-release versions.
These redirects allow the main website to link to the API documentation dynamically, without hardcoding the version number in the URLs, ensuring that users are always directed to the correct version of the documentation even as we provide new version of Lucene.NET and its accompanying API documentation.

@rclabo rclabo merged commit c053719 into apache:master Sep 27, 2024
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.

1 participant