Added more Dokka options
This commit is contained in:
parent
2e9e2bc826
commit
79254d9642
6 changed files with 298 additions and 36 deletions
4
examples/.idea/misc.xml
generated
4
examples/.idea/misc.xml
generated
|
@ -1,5 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EntryPointsManager">
|
||||
<pattern value="com.example.ExampleBuild" />
|
||||
<pattern value="com.example.ExampleBuild" method="javadoc" />
|
||||
</component>
|
||||
<component name="PDMPlugin">
|
||||
<option name="customRuleSets">
|
||||
<list>
|
||||
|
|
|
@ -4,6 +4,7 @@ import rife.bld.BaseProject;
|
|||
import rife.bld.BuildCommand;
|
||||
import rife.bld.extension.CompileKotlinOperation;
|
||||
import rife.bld.extension.dokka.DokkaOperation;
|
||||
import rife.bld.extension.dokka.LoggingLevel;
|
||||
import rife.bld.operations.exceptions.ExitStatusException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -57,6 +58,7 @@ public class ExampleBuild extends BaseProject {
|
|||
public void javadoc() throws ExitStatusException, IOException, InterruptedException {
|
||||
new DokkaOperation()
|
||||
.fromProject(this)
|
||||
.loggingLevel(LoggingLevel.INFO)
|
||||
.execute();
|
||||
}
|
||||
}
|
|
@ -1,10 +1,25 @@
|
|||
package com.example
|
||||
|
||||
/**
|
||||
* Example class.
|
||||
*/
|
||||
class Example {
|
||||
/**
|
||||
* Message property.
|
||||
*/
|
||||
val message: String
|
||||
/**
|
||||
* Returns the message property.
|
||||
*/
|
||||
get() = "Hello World!"
|
||||
|
||||
/**
|
||||
* Companion object.
|
||||
*/
|
||||
companion object {
|
||||
/**
|
||||
* Main function.
|
||||
*/
|
||||
@JvmStatic
|
||||
fun main(args: Array<String>) {
|
||||
println(Example().message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue