mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-09 12:15:04 -04:00
Unique documentation is collapsable
This commit is contained in:
parent
a3fd04bb59
commit
40918db1b0
@ -70,12 +70,12 @@ class UniqueDocsWriter {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
val uniqueText = if (targetType.key == UniqueTarget.Conditional) "<${uniqueType.text}>"
|
val uniqueText = if (targetType.key == UniqueTarget.Conditional) "<${uniqueType.text}>"
|
||||||
else uniqueType.text
|
else uniqueType.text
|
||||||
lines += "### 🔷 $uniqueText"
|
lines += "??? example \"$uniqueText\"" // collapsable material mkdocs block, see https://squidfunk.github.io/mkdocs-material/reference/admonitions/?h=%3F%3F%3F#collapsible-blocks
|
||||||
if (uniqueType.text.contains('['))
|
if (uniqueType.text.contains('['))
|
||||||
lines += "Example: \"${replaceExamples(uniqueText)}\"\n"
|
lines += "\tExample: \"${replaceExamples(uniqueText)}\"\n"
|
||||||
lines += "Applicable to: " + uniqueType.targetTypes.sorted().joinToString()
|
lines += "\tApplicable to: " + uniqueType.targetTypes.sorted().joinToString()
|
||||||
lines += ""
|
lines += ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -90,6 +90,6 @@ class UniqueDocsWriter {
|
|||||||
lines += " - \"${deprecatedUnique.text}\" - $deprecationText"
|
lines += " - \"${deprecatedUnique.text}\" - $deprecationText"
|
||||||
}
|
}
|
||||||
|
|
||||||
File("../../docs/uniques.md").writeText(lines.joinToString("\n"))
|
File("../../docs/Modders/uniques.md").writeText(lines.joinToString("\n"))
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,7 +5,6 @@ These are split into two categories:
|
|||||||
- `Text that looks like this`. This last one must be used exactly the same
|
- `Text that looks like this`. This last one must be used exactly the same
|
||||||
Note that all of these are case-sensitive!
|
Note that all of these are case-sensitive!
|
||||||
|
|
||||||
|
|
||||||
## action
|
## action
|
||||||
An action that a unit can preform. Currently, there are only two actions part of this:
|
An action that a unit can preform. Currently, there are only two actions part of this:
|
||||||
- `Spread Religion`
|
- `Spread Religion`
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,5 @@
|
|||||||
|
# Translating
|
||||||
|
|
||||||
## Starting out
|
## Starting out
|
||||||
|
|
||||||
The translation files are at [/android/assets/jsons/translations](/jsons/translations)
|
The translation files are at [/android/assets/jsons/translations](/jsons/translations)
|
||||||
|
21
mkdocs.yml
21
mkdocs.yml
@ -1,4 +1,4 @@
|
|||||||
site_name: Unciv documentation
|
site_name: Unciv
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
|
|
||||||
@ -15,3 +15,22 @@ theme:
|
|||||||
toggle:
|
toggle:
|
||||||
icon: material/lightbulb-outline
|
icon: material/lightbulb-outline
|
||||||
name: Switch to dark mode
|
name: Switch to dark mode
|
||||||
|
|
||||||
|
icon:
|
||||||
|
repo: fontawesome/brands/github
|
||||||
|
|
||||||
|
repo_name: yairm210/unciv
|
||||||
|
repo_url: https://github.com/yairm210/unciv
|
||||||
|
|
||||||
|
#markdown_extensions:
|
||||||
|
# - abbr
|
||||||
|
# - pymdownx.snippets
|
||||||
|
# - attr_list
|
||||||
|
# - md_in_html
|
||||||
|
# - pymdownx.superfences
|
||||||
|
|
||||||
|
markdown_extensions:
|
||||||
|
- admonition
|
||||||
|
- pymdownx.details
|
||||||
|
- pymdownx.superfences
|
||||||
|
- pymdownx.details # For collapsable admonitions - see https://squidfunk.github.io/mkdocs-material/reference/admonitions/?h=%3F%3F%3F#collapsible-blocks
|
Loading…
x
Reference in New Issue
Block a user