Skip to content

Commit 3aadc8f

Browse files
jmartiskbschuhmann
authored andcommitted
Unwrap tooltips in the downstream configuration reference docs
1 parent 4a2ac10 commit 3aadc8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/src/main/java/io/quarkus/docs/generation/AssembleDownstreamDocumentation.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public class AssembleDownstreamDocumentation {
6262
private static final String SOURCE_BLOCK_PREFIX = "[source";
6363
private static final String SOURCE_BLOCK_DELIMITER = "--";
6464
private static final Pattern FOOTNOTE_PATTERN = Pattern.compile("footnote:([a-z0-9_-]+)\\[(\\])?");
65+
private static final Pattern TOOLTIP_PATTERN = Pattern.compile("tooltip:([a-z0-9_-]+)\\[(.*?)\\]");
6566

6667
private static final String PROJECT_NAME_ATTRIBUTE = "{project-name}";
6768
private static final String RED_HAT_BUILD_OF_QUARKUS = "Red Hat build of Quarkus";
@@ -483,6 +484,10 @@ private static String rewriteContent(String fileName,
483484
return "footnoteref:[" + mr.group(1) + ", ";
484485
});
485486

487+
content = TOOLTIP_PATTERN.matcher(content).replaceAll(mr -> {
488+
return "*" + mr.group(1) + "*: " + mr.group(2);
489+
});
490+
486491
return content;
487492
}
488493

0 commit comments

Comments
 (0)