Skip to content

Commit

Permalink
fix sort order of adrs
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller committed Jan 28, 2024
1 parent e9b7b99 commit 8c66f0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion documentation/scripts/specialCollectIncludes.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ task specialCollectIncludes (
def outFile = new File(targetDir,"adrInclude.adoc")
println ("write result to "+outFile.canonicalPath)
outFile.write("//autogenerated through ./dtcw specialCollectIncludes\n\n")
def includes = []
adrFolder.traverse(type: FILES) { file ->
print file.name+"\n"
outFile.append("include::adrs/${file.name}[leveloffset=+1]\n")
includes += "include::adrs/${file.name}[leveloffset=+1]"
}
println includes
outFile.append(includes.sort().join("\n"))
outFile.append("\n")
}
}

0 comments on commit 8c66f0d

Please sign in to comment.