You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by do...@apache.org on 2026/09/29 15:18:57 UTC

(accumulo) branch main updated: Fix broken links in generated property docs (#6565)

This is an automated email from the ASF dual-hosted git repository.

DomGarguilo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 8d7b722770 Fix broken links in generated property docs (#6565)
8d7b722770 is described below

commit 8d7b7227704c5222a9a4c36f51f8a36494b317b4
Author: Dom G. <do...@apache.org>
AuthorDate: Tue Sep 29 11:18:50 2026 -0400

    Fix broken links in generated property docs (#6565)
---
 .../java/org/apache/accumulo/core/conf/ClientConfigGenerate.java  | 4 ++--
 .../java/org/apache/accumulo/core/conf/ConfigurationDocGen.java   | 8 ++++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/core/src/main/java/org/apache/accumulo/core/conf/ClientConfigGenerate.java b/core/src/main/java/org/apache/accumulo/core/conf/ClientConfigGenerate.java
index 6b8479999a..3be3f23f73 100644
--- a/core/src/main/java/org/apache/accumulo/core/conf/ClientConfigGenerate.java
+++ b/core/src/main/java/org/apache/accumulo/core/conf/ClientConfigGenerate.java
@@ -95,8 +95,8 @@ public class ClientConfigGenerate {
       doc.println("<!-- Generated by : " + getClass().getName() + " -->\n");
       doc.println("Below are properties set in `accumulo-client.properties`"
           + " that configure [Accumulo clients]({{ page.docs_baseurl"
-          + " }}/getting-started/clients#connecting). All properties have been part"
-          + " of the API since 2.0.0 (unless otherwise specified):\n");
+          + " }}/getting-started/clients#creating-an-accumulo-client). All properties have"
+          + " been part of the API since 2.0.0 (unless otherwise specified):\n");
       doc.println("| Property | Default value | Since | Description |");
       doc.println("|----------|---------------|-------|-------------|");
     }
diff --git a/core/src/main/java/org/apache/accumulo/core/conf/ConfigurationDocGen.java b/core/src/main/java/org/apache/accumulo/core/conf/ConfigurationDocGen.java
index 61411cd2d0..c129c31f1d 100644
--- a/core/src/main/java/org/apache/accumulo/core/conf/ConfigurationDocGen.java
+++ b/core/src/main/java/org/apache/accumulo/core/conf/ConfigurationDocGen.java
@@ -88,8 +88,12 @@ public class ConfigurationDocGen {
     if (depr) {
       description += "*Deprecated since:* " + prefix.deprecatedSince() + "<br>";
       if (prefix.isReplaced()) {
-        description += "*Replaced by:* <a href=\"#" + prefix.replacedBy().getKey().replace(".", "_")
-            + "prefix\">" + prefix.replacedBy() + "</a><br>";
+        Property replacement = prefix.replacedBy();
+        String anchor = replacement.getKey().replace(".", "_");
+        if (replacement.getType() == PropertyType.PREFIX) {
+          anchor += "prefix";
+        }
+        description += "*Replaced by:* <a href=\"#" + anchor + "\">" + replacement + "</a><br>";
       }
     }
     description += strike(sanitize(prefix.getDescription()), depr);