Skip to content

Commit

Permalink
style:
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjerry committed Feb 2, 2024
1 parent bdc3665 commit c17cc33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- Support browser headers or cookies conversion. Include Google Chrome and Firefox
- 支持直接从浏览器F12复制的的headers文本与cookies文本格式化为python字典

[Unreleased]: https://github.com/bitjerry/Headers/compare/v2.0.2...HEAD
[Unreleased]: https://github.com/bitjerry/Headers/compare/v2.0.3...HEAD
[2.0.2]: https://github.com/bitjerry/Headers/compare/v1.0.4...v2.0.2
[1.0.4]: https://github.com/bitjerry/Headers/compare/v1.0.3...v1.0.4
[1.0.3]: https://github.com/bitjerry/Headers/compare/v1.0.2...v1.0.3
Expand Down
15 changes: 8 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,18 @@ tasks {

// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
// pluginDescription = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
// val start = "<!-- Plugin description -->"
// val end = "<!-- Plugin description end -->"
//// val start = "<!-- Plugin description -->"
//// val end = "<!-- Plugin description end -->"
//
// with (it.lines()) {
// 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").let(::markdownToHTML)
//// 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").let(::markdownToHTML)
// joinToString("\n").let(::markdownToHTML)
// }
// }
pluginDescription = providers.fileContents(layout.projectDirectory.file("DESCRIPTION.md")).asText
pluginDescription = providers.fileContents(layout.projectDirectory.file("DESCRIPTION.md")).asText.get().let(::markdownToHTML)

val changelog = project.changelog // local variable for configuration cache compatibility
// Get the latest available change notes from the changelog file
Expand Down

0 comments on commit c17cc33

Please sign in to comment.