-
Notifications
You must be signed in to change notification settings - Fork 39
docs: Update replacements and links #541
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
docs: Update replacements and links #541
Conversation
Those links redirect to internal API which is not a part of the generated javadoc, leading to 404 on visit. Instead redirect to code on github.
Some of the links in documentation lead to datastax repositories. This change adds patterns that should cover any links to classes or directories of the codebase and make them point to scylladb fork instead.
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.
Pull Request Overview
This PR updates documentation links and replacement patterns to fix broken URLs for the scylla-4.x branch, and adds extra patterns for handling GitHub links.
- Updated URL links in the reconnection README to point to the correct GitHub repository paths.
- Added new regex replacement patterns for GitHub links in docs/source/conf.py to ensure consistency across documentation.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| manual/core/reconnection/README.md | Fixed broken links by redirecting to the GitHub repository for the scylla-4.x branch. |
| docs/source/conf.py | Added multiple replacement patterns to update and standardize documentation links. |
| was established. | ||
|
|
||
| [ConstantReconnectionPolicy]: https://docs.datastax.com/en/drivers/java/4.17/com/datastax/oss/driver/internal/core/connection/ConstantReconnectionPolicy.html | ||
| [ConstantReconnectionPolicy]: https://github.com/scylladb/java-driver/blob/scylla-4.x/core/src/main/java/com/datastax/oss/driver/internal/core/connection/ConstantReconnectionPolicy.java |
Copilot
AI
May 28, 2025
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.
Verify that the updated link correctly reflects the intended repository structure and branch for accurate documentation reference.
| r'docs.datastax.com/en/drivers/java\/(.*?)\/': "java-driver.docs.scylladb.com/" + current_slug + "/api/", | ||
| r'java-driver.docs.scylladb.com\/(.*?)\/': "java-driver.docs.scylladb.com/" + current_slug + "/" | ||
| r'java-driver.docs.scylladb.com\/(.*?)\/': "java-driver.docs.scylladb.com/" + current_slug + "/", | ||
| r'github.com\/apache\/cassandra-java-driver\/blob\/4.x\/': "github.com/scylladb/java-driver/blob/scylla-4.x/", |
Copilot
AI
May 28, 2025
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.
[nitpick] Consider adding inline comments to describe the intent behind these new replacement patterns, which can aid future maintainability.
|
This PR can be merged separately from the other drafts. |
Adds a few extra replacement patterns for documentation links and fixes broken links in reconnection manual, but for this (scylla-4.x) branch only. Once this patch is approved I will create backports fixing the links in older versions.