rionmonster opened a new pull request, #2085: URL: https://github.com/apache/fluss/pull/2085
### Purpose Linked issue: close https://github.com/apache/fluss/issues/2062 Per Issue https://github.com/apache/fluss/issues/2062, this pull request adds redirect support for the latest stable version documentation (e.g. `docs/0.8/engine-flink/getting-started/` → `docs/engine-flink/getting-started/`). This change will ensure that both implicit and explicit references to the latest stable version are resolved correctly, avoiding broken links. ### Brief change log - Added a dependency on the `@docusaurus/plugin-client-redirects` plugin to support performing client-side redirects. - Added a new `createRedirects` redirect rule that applies only to the docs area, which will handle ensuring that the existing routes are evaluated and redirect routes are defined for those that are considered "unversioned" (e.g. "next", non-existant versions, etc.) - Note: The `createRedirects` function is not at all intuitive and I [highly recommend reviewing over the documentation here](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-client-redirects#CreateRedirectsFn) to help make sense of things. ### Tests These changes were tested locally and require an explicit `npm run build` and `npm run serve` as redirect rules are _only_ applied for production builds (so an `npm run start` will _not_ apply them). You can see an example of this running locally and successfully navigating through the available versions _and_ redirecting routes that explicitly use the latest, stable version (0.8) below: https://github.com/user-attachments/assets/7aafa9c5-aec6-4d60-a3e4-73f6b3b5eb35 ### API and Format N/A ### Documentation N/A -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
