Ensured exit status is set on failure
Some checks failed
bld-ci / build-bld-project (17, 1.19.24) (push) Has been cancelled
bld-ci / build-bld-project (17, 2.0.0) (push) Has been cancelled
bld-ci / build-bld-project (21, 1.19.24) (push) Has been cancelled
bld-ci / build-bld-project (21, 2.0.0) (push) Has been cancelled
bld-ci / build-bld-project (22, 1.19.24) (push) Has been cancelled
bld-ci / build-bld-project (22, 2.0.0) (push) Has been cancelled
javadocs-pages / deploy (push) Has been cancelled

This commit is contained in:
Erik C. Thauvin 2024-07-22 10:23:19 -07:00
parent bd9aa20223
commit 6a6d6ce62a
Signed by: erik
GPG key ID: 776702A6A2DA330E
5 changed files with 175 additions and 115 deletions

View file

@ -6,6 +6,7 @@
<pattern value="com.example.ExampleBuild" method="dokkaHtml" />
<pattern value="com.example.ExampleBuild" method="dokkaGfm" />
<pattern value="com.example.ExampleBuild" method="dokkaJekyll" />
<pattern value="com.example.ExampleBuild" method="docs" />
</component>
<component name="PDMPlugin">
<option name="customRuleSets">

View file

@ -20,6 +20,8 @@
## Build the documentation with [Dokka](https://github.com/Kotlin/dokka)
```console
./bld docs
./bld javadoc
./bld dokka-html
./bld dokka-gfm

View file

@ -68,6 +68,14 @@ public class ExampleBuild extends Project {
.execute();
}
@BuildCommand(value = "docs", summary = "Generates all documentation")
public void docs() throws ExitStatusException, IOException, InterruptedException {
dokkaGfm();
dokkaHtml();
dokkaJekyll();
javadoc();
}
@BuildCommand(value = "dokka-gfm", summary = "Generates documentation in GitHub flavored markdown format")
public void dokkaGfm() throws ExitStatusException, IOException, InterruptedException {
new DokkaOperation()