Skip to content

Conversation

@Bouncheck
Copy link

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.

Bouncheck added 2 commits May 27, 2025 12:14
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.
@Bouncheck Bouncheck self-assigned this May 27, 2025
@Bouncheck Bouncheck requested review from Copilot and dkropachev May 28, 2025 14:06
Copy link

Copilot AI left a 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
Copy link

Copilot AI May 28, 2025

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.

Copilot uses AI. Check for mistakes.
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/",
Copy link

Copilot AI May 28, 2025

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.

Copilot uses AI. Check for mistakes.
@Bouncheck
Copy link
Author

This PR can be merged separately from the other drafts.

@dkropachev dkropachev merged commit 05fe79d into scylladb:scylla-4.x May 30, 2025
5 of 11 checks passed
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.

2 participants