Skip to content

Commit

Permalink
The plug-in description has been reorganized according to the Marketp…
Browse files Browse the repository at this point in the history
…lace.
  • Loading branch information
anilmisirlioglu committed Dec 10, 2020
1 parent d134780 commit 4632677
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ IDEA Keystroke Counter
[![Version][version-badge]][plugin]
[![Downloads][downloads-badge]][plugin]

<!-- Plugin description start -->

Keystroke Counter tracks your keystrokes on the keyboard and counts them
for you. When you set a daily limit, it shows how close you are to your
daily limit. At the same time it shows the keystrokes it counts with
Expand Down Expand Up @@ -49,4 +51,6 @@ Copyright (c) 2020 [Anıl Mısırlıoğlu][github]. See the [LICENSE](./LICENSE)
[github]: https://github.com/anilmisirlioglu
[plugin]: https://plugins.jetbrains.com/plugin/15538
[version-badge]: https://img.shields.io/jetbrains/plugin/v/15538
[downloads-badge]: https://img.shields.io/jetbrains/plugin/d/15538
[downloads-badge]: https://img.shields.io/jetbrains/plugin/d/15538

<!-- Plugin description end -->
15 changes: 10 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ tasks {

pluginDescription(
closure {
File("./README.md")
.readText()
.lines()
.joinToString("\n").run {
markdownToHTML(this)
File("./README.md").readText().lines().run {
val start = "<!-- Plugin description start -->"
val end = "<!-- Plugin description end -->"

if (!containsAll(listOf(start, end))) {
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
}
subList(indexOf(start) + 1, indexOf(end))
}.joinToString("\n").run {
markdownToHTML(this)
}
}
)

Expand Down

0 comments on commit 4632677

Please sign in to comment.