Comment unique (#10575)

* Comment Unique

* Comment Unique translations

* Comment Unique more descriptive documentation

* New languages
This commit is contained in:
SomeTroglodyte
2023-11-25 19:11:30 +01:00
committed by GitHub
parent f1ceaa216a
commit b61c9de39e
39 changed files with 61 additions and 11 deletions

View File

@ -73,6 +73,8 @@ class UniqueDocsWriter {
"<${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.docDescription != null)
lines += "\t${uniqueType.docDescription}"
if (uniqueType.parameterTypeMap.isNotEmpty()) {
// This one will give examples for _each_ filter in a "tileFilter/specialist/buildingFilter" kind of parameter e.g. "Farm/Merchant/Library":
// `val paramExamples = uniqueType.parameterTypeMap.map { it.joinToString("/") { pt -> pt.docExample } }.toTypedArray()`