Skip to content

Commit

Permalink
more dynamic readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed May 7, 2024
1 parent 6ff304e commit 7bb8f9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ In scala-cli:

(note: versions before `0.3.8` were published under the `com.kubukoz` organization instead of `org.polyvariant`)

The plugin is currently published for the following Scala versions:

<!-- SCALA VERSIONS START -->
The plugin is currently published for the following 21 Scala versions:

- 2.12.15, 2.12.17, 2.12.18, 2.12.19
- 2.13.10, 2.13.11, 2.13.12, 2.13.13, 2.13.14
- 3.1.3
Expand Down
2 changes: 1 addition & 1 deletion project/ReadmePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object ReadmePlugin extends AutoPlugin {
.map { prefix =>
"- " + versionsGrouped(prefix).mkString(", ")
}
.mkString("\n")
.mkString(s"The plugin is currently published for the following ${crossScalaVersions.value.size} Scala versions:\n\n", "\n", "")

pattern("(?s)(.+)").r.replaceAllIn(template, pattern(s"\n$versionsString\n"))
}.value,
Expand Down

0 comments on commit 7bb8f9e

Please sign in to comment.