Sort demos in readmes (#220)

This commit is contained in:
Abe Pazos
2022-01-19 15:21:07 +01:00
committed by GitHub
parent 9f1bb16f94
commit 2978d235cc

View File

@@ -73,7 +73,7 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() {
// this is only executed if there are chances in the inputDir
val runDemos = outputDir.get().asFile.listFiles { file: File ->
file.extension == "png"
}.map { it.nameWithoutExtension }
}.map { it.nameWithoutExtension }.sorted()
val readme = File(project.projectDir, "README.md")
if (readme.exists()) {
var lines = readme.readLines().toMutableList()