Add new type descriptions for rule attribute documentation.
Motivation: properly document config_setting.values.
The license type description is terse. But that's an obscure
feature we don't really want to focus attention on.
PiperOrigin-RevId: 161998339
diff --git a/src/main/java/com/google/devtools/build/docgen/RuleDocumentationAttribute.java b/src/main/java/com/google/devtools/build/docgen/RuleDocumentationAttribute.java
index aec9eb1..5f543f9 100644
--- a/src/main/java/com/google/devtools/build/docgen/RuleDocumentationAttribute.java
+++ b/src/main/java/com/google/devtools/build/docgen/RuleDocumentationAttribute.java
@@ -43,6 +43,7 @@
.put(Type.INTEGER, "Integer")
.put(Type.INTEGER_LIST, "List of integers")
.put(Type.STRING, "String")
+ .put(Type.STRING_DICT, "Dictionary: String -> String")
.put(Type.STRING_LIST, "List of strings")
.put(BuildType.TRISTATE, "Integer")
.put(BuildType.LABEL, "<a href=\"../build-ref.html#labels\">Label</a>")
@@ -50,6 +51,7 @@
.put(
BuildType.LABEL_DICT_UNARY,
"Dictionary mapping strings to <a href=\"../build-ref.html#labels\">labels</a>")
+ .put(BuildType.LICENSE, "Licence type")
.put(BuildType.NODEP_LABEL, "<a href=\"../build-ref.html#name\">Name</a>")
.put(BuildType.NODEP_LABEL_LIST, "List of <a href=\"../build-ref.html#name\">names</a>")
.put(BuildType.OUTPUT, "<a href=\"../build-ref.html#filename\">Filename</a>")