Skip to content

Commit

Permalink
Merge pull request #32906 from vespa-engine/kkraune/desc-last
Browse files Browse the repository at this point in the history
Put Description to the right in the table
  • Loading branch information
olaaun authored Nov 20, 2024
2 parents d043d7a + 692a264 commit fa2df79
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected static void writeMetricSetDocumentation(String path, String name, Metr
<h2 id="%s-metrics">%s Metrics</h2>
<table class="table">
<thead>
<tr><th>Name</th><th>Description</th><th>Unit</th><th>Suffixes</th></tr>
<tr><th>Name</th><th>Unit</th><th>Suffixes</th><th>Description</th></tr>
</thead>
<tbody>
%s </tbody>
Expand Down Expand Up @@ -92,9 +92,9 @@ private static String htmlRows(Map<VespaMetrics, LinkedHashSet<String>> metrics)
""",
entry.getKey().baseName().replaceAll("\\.", "_"),
entry.getKey().baseName(),
entry.getKey().description(),
entry.getKey().unit().toString().toLowerCase(),
String.join(", ", entry.getValue()))
String.join(", ", entry.getValue()),
entry.getKey().description())

).collect(Collectors.joining());
}
Expand Down

0 comments on commit fa2df79

Please sign in to comment.