1
0
mirror of synced 2026-05-22 18:53:15 +00:00

feat: roll driver, implement new APIs (#1142)

This commit is contained in:
Yury Semikhatsky
2022-12-19 12:31:32 -08:00
committed by GitHub
parent 048bca9d59
commit 4efa174368
47 changed files with 3449 additions and 2825 deletions
@@ -90,6 +90,9 @@ abstract class Element {
if (!json.has("spec")) {
return "";
}
if (json.has("deprecated")) {
return "@deprecated " + beautify(json.get("deprecated").getAsString());
}
return formatSpec(json.getAsJsonArray("spec"));
}
@@ -143,6 +146,7 @@ abstract class Element {
out.add("</" + currentItemList + ">");
currentItemList = null;
}
return String.join("\n", out);
}
@@ -151,7 +155,8 @@ abstract class Element {
linkified = updateExternalLinks(linkified);
return wrapText(linkified, 120, "")
.replaceAll("`'([^`]+)'`", "{@code \"$1\"}")
.replaceAll("`([^`]+)`", "{@code $1}");
.replaceAll("`([^`]+)`", "{@code $1}")
.replaceAll("", " ");
}
private static String linkifyMemberRefs(String paragraph) {