diff options
Diffstat (limited to 'stardoc/templates/markdown_tables/repository_rule.vm')
-rw-r--r-- | stardoc/templates/markdown_tables/repository_rule.vm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/stardoc/templates/markdown_tables/repository_rule.vm b/stardoc/templates/markdown_tables/repository_rule.vm new file mode 100644 index 0000000..ed4a2a9 --- /dev/null +++ b/stardoc/templates/markdown_tables/repository_rule.vm @@ -0,0 +1,31 @@ +<a id="${ruleName}"></a> + +#[[##]]# ${ruleName} + +<pre> +${util.repositoryRuleSummary($ruleName, $ruleInfo)} +</pre> +#if (!$ruleInfo.docString.isEmpty()) + +${ruleInfo.docString} +#end + +**ATTRIBUTES** + +#if (!$ruleInfo.getAttributeList().isEmpty()) + +| Name | Description | Type | Mandatory | Default | +| :------------- | :------------- | :------------- | :------------- | :------------- | +#foreach ($attribute in $ruleInfo.getAttributeList()) +| <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()) ${util.markdownCodeSpan($attribute.defaultValue)} #end | +#end +#end +#if (!$ruleInfo.getEnvironList().isEmpty()) + +**ENVIRONMENT VARIABLES** + +This repository rule depends on the following environment variables: +#foreach ($var in $ruleInfo.getEnvironList()) +* ${util.markdownCodeSpan($var)} +#end +#end |