Sort demos in readmes (#220)
This commit is contained in:
@@ -73,7 +73,7 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() {
|
|||||||
// this is only executed if there are chances in the inputDir
|
// this is only executed if there are chances in the inputDir
|
||||||
val runDemos = outputDir.get().asFile.listFiles { file: File ->
|
val runDemos = outputDir.get().asFile.listFiles { file: File ->
|
||||||
file.extension == "png"
|
file.extension == "png"
|
||||||
}.map { it.nameWithoutExtension }
|
}.map { it.nameWithoutExtension }.sorted()
|
||||||
val readme = File(project.projectDir, "README.md")
|
val readme = File(project.projectDir, "README.md")
|
||||||
if (readme.exists()) {
|
if (readme.exists()) {
|
||||||
var lines = readme.readLines().toMutableList()
|
var lines = readme.readLines().toMutableList()
|
||||||
|
|||||||
Reference in New Issue
Block a user