Better docs for Trigger Conditions

This commit is contained in:
Yair Morgenstern
2023-01-16 23:13:08 +02:00
parent 509d179d19
commit be161d8839
2 changed files with 19 additions and 18 deletions

View File

@ -63,7 +63,8 @@ class UniqueDocsWriter {
for (uniqueType in uniqueTypes) {
if (uniqueType.getDeprecationAnnotation() != null) continue
val uniqueText = if (targetType == UniqueTarget.Conditional) "<${uniqueType.text}>"
val uniqueText = if (targetType == UniqueTarget.Conditional || targetType == UniqueTarget.TriggerCondition)
"<${uniqueType.text}>"
else uniqueType.text
lines += "??? example \"$uniqueText\"" // collapsable material mkdocs block, see https://squidfunk.github.io/mkdocs-material/reference/admonitions/?h=%3F%3F%3F#collapsible-blocks
if (uniqueType.parameterTypeMap.isNotEmpty()) {