commit | ac297a459f4fee416f98a43fea168313fc11c1a7 | [log] [tgz] |
---|---|---|
author | Alex Humesky <ahumesky@google.com> | Tue Apr 09 14:13:10 2024 -0400 |
committer | GitHub <noreply@github.com> | Tue Apr 09 14:13:10 2024 -0400 |
tree | 22316685fa7e888e94cc3ae647e7b8e8c5ee490c | |
parent | 3d15697e281d1162ac6a3339ef59878779ad8a47 [diff] |
Fix repo rules environment variables list (#204) Add a newline before repo rules list of environment variable dependencies so that the list correctly renders.
diff --git a/stardoc/templates/html_tables/repository_rule.vm b/stardoc/templates/html_tables/repository_rule.vm index 6594130..2378562 100644 --- a/stardoc/templates/html_tables/repository_rule.vm +++ b/stardoc/templates/html_tables/repository_rule.vm
@@ -44,6 +44,7 @@ **ENVIRONMENT VARIABLES** This repository rule depends on the following environment variables: + #foreach ($var in $ruleInfo.getEnvironList()) * ${util.markdownCodeSpan($var)} #end
diff --git a/stardoc/templates/markdown_tables/repository_rule.vm b/stardoc/templates/markdown_tables/repository_rule.vm index ed4a2a9..4473f01 100644 --- a/stardoc/templates/markdown_tables/repository_rule.vm +++ b/stardoc/templates/markdown_tables/repository_rule.vm
@@ -25,6 +25,7 @@ **ENVIRONMENT VARIABLES** This repository rule depends on the following environment variables: + #foreach ($var in $ruleInfo.getEnvironList()) * ${util.markdownCodeSpan($var)} #end
diff --git a/test/testdata/repo_rules_test/golden.md b/test/testdata/repo_rules_test/golden.md index de907c7..ac43415 100644 --- a/test/testdata/repo_rules_test/golden.md +++ b/test/testdata/repo_rules_test/golden.md
@@ -24,6 +24,7 @@ **ENVIRONMENT VARIABLES** This repository rule depends on the following environment variables: + * `FOO_CC` * `BAR_PATH`