accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwa...@apache.org
Subject [accumulo] branch master updated: ACCUMULO-4754 Fix links to properties in 2.0 docs (#330)
Date Wed, 06 Dec 2017 17:57:04 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 1a6e75c  ACCUMULO-4754 Fix links to properties in 2.0 docs (#330)
1a6e75c is described below

commit 1a6e75ce5700b0e98a44e3ad19b5a3f1dc002bdf
Author: Mike Walch <mwalch@apache.org>
AuthorDate: Wed Dec 6 12:57:00 2017 -0500

    ACCUMULO-4754 Fix links to properties in 2.0 docs (#330)
    
    * Added class='props' to properties for css changes
    * Renamed generated file to properties.md
---
 core/pom.xml                                                          | 2 +-
 .../main/java/org/apache/accumulo/core/conf/ConfigurationDocGen.java  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/pom.xml b/core/pom.xml
index 8b32bef..b459a82 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -288,7 +288,7 @@
               <classpathScope>test</classpathScope>
               <arguments>
                 <argument>--generate-markdown</argument>
-                <argument>${project.build.directory}/generated-docs/configuration-properties.md</argument>
+                <argument>${project.build.directory}/generated-docs/properties.md</argument>
               </arguments>
             </configuration>
           </execution>
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 e103e69..61245f8 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
@@ -90,14 +90,14 @@ class ConfigurationDocGen {
     @Override
     void prefixSection(Property prefix) {
       boolean depr = prefix.isDeprecated();
-      doc.print("| <a name=\"" + prefix.getKey().replace(".", "_") + "prefix\"></a>
**" + prefix.getKey() + "*** | ");
+      doc.print("| <a name=\"" + prefix.getKey().replace(".", "_") + "prefix\" class=\"prop\"></a>
**" + prefix.getKey() + "*** | ");
       doc.println((depr ? "**Deprecated.** " : "") + strike(sanitize(prefix.getDescription()),
depr) + " |");
     }
 
     @Override
     void property(Property prop) {
       boolean depr = prop.isDeprecated();
-      doc.print("| <a name=\"" + prop.getKey().replace(".", "_") + "\"></a> "
+ prop.getKey() + " | ");
+      doc.print("| <a name=\"" + prop.getKey().replace(".", "_") + "\" class=\"prop\"></a>
" + prop.getKey() + " | ");
       doc.print((depr ? "**Deprecated.** " : "") + strike(sanitize(prop.getDescription()),
depr) + "<br>");
       doc.print(strike("**type:** " + prop.getType().name(), depr) + ", ");
       doc.print(strike("**zk mutable:** " + isZooKeeperMutable(prop), depr) + ", ");

-- 
To stop receiving notification emails like this one, please contact
['"commits@accumulo.apache.org" <commits@accumulo.apache.org>'].

Mime
View raw message