xref: /aosp_15_r20/external/stardoc/stardoc/templates/markdown_tables/rule.vm (revision b2fa42943c124aa9c7163734493fc7a7559681cf)
1<a id="${ruleName}"></a>
2
3#[[##]]# ${ruleName}
4
5<pre>
6${util.ruleSummary($ruleName, $ruleInfo)}
7</pre>
8
9${util.htmlEscape($ruleInfo.docString)}
10
11**ATTRIBUTES**
12
13#if (!$ruleInfo.getAttributeList().isEmpty())
14
15| Name  | Description | Type | Mandatory | Default |
16| :------------- | :------------- | :------------- | :------------- | :------------- |
17#foreach ($attribute in $ruleInfo.getAttributeList())
18| <a id="${ruleName}-${attribute.name}"></a>$attribute.name | #if(!$attribute.docString.isEmpty()) ${util.markdownCellFormat($attribute.docString)} #else - #end  | ${util.attributeTypeString($attribute)} | ${util.mandatoryString($attribute)} | #if(!$attribute.defaultValue.isEmpty())<code>${util.htmlEscape($attribute.defaultValue)}</code>#end |
19#end
20#end
21