Skip to content

Commit

Permalink
Distinguish non-instantiable build items
Browse files Browse the repository at this point in the history
In the all-builditems docs, use an icon/hover to distinguish non-instantiable build items. These can be extended by other build items, so documenting them is good.
  • Loading branch information
edeandrea committed Jul 15, 2024
1 parent d7b84f6 commit 4d22b17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/src/main/asciidoc/all-builditems.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ include::_attributes.adoc[]
:categories: writing-extensions
:summary: Explore all the BuildItems you can consume/produce in your extensions.

Here you can find a list of Build Items and the extension that provides them:
Here you can find a list of Build Items and the extension that provides them.

icon:lock[title=Non-instantiatable Build Item] Build item can't be instantiated directly, but can be extended/inherited from

include::{generated-dir}/config/quarkus-all-build-items.adoc[opts=optional]
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,11 @@ private void printTableRow(Pair<Path, JavaClassSource> pair) {
String className = source.getQualifiedName();
String attributes = buildAttributes(source);
String description = getJavaDoc(source);
String baseBuildItemText = source.isAbstract()
? "icon:lock[title=Non-instantiatable Build Item (can be inherited from)]"
: "";

out.println("a| " + link + "[`" + className + "`, window=\"_blank\"] :: +++" +
out.println("a|" + baseBuildItemText + " " + link + "[`" + className + "`, window=\"_blank\"] :: +++" +
javadocToHTML(description) + "+++");
out.println("a| " + attributes);
}
Expand Down

0 comments on commit 4d22b17

Please sign in to comment.