From 0c3686143952ee2cdd058648ae3e96da77648a3b Mon Sep 17 00:00:00 2001 From: Dom G Date: Mon, 28 Sep 2026 14:09:40 -0400 Subject: [PATCH] Fix broken links in generated property docs --- .../apache/accumulo/core/conf/ClientConfigGenerate.java | 4 ++-- .../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 6b8479999ac..3be3f23f73e 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 @@ void pageHeader() { doc.println("\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 61411cd2d04..c129c31f1dc 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 @@ void prefixSection(Property prefix) { if (depr) { description += "*Deprecated since:* " + prefix.deprecatedSince() + "
"; if (prefix.isReplaced()) { - description += "*Replaced by:* " + prefix.replacedBy() + "
"; + Property replacement = prefix.replacedBy(); + String anchor = replacement.getKey().replace(".", "_"); + if (replacement.getType() == PropertyType.PREFIX) { + anchor += "prefix"; + } + description += "*Replaced by:* " + replacement + "
"; } } description += strike(sanitize(prefix.getDescription()), depr);