我有这样的示例代码:
import org.json.JSONObject
/**
* This class stores an instance of [JSONObject] and logs all `get()` and `set()` calls in stdout
*/
class Storage(obj: JSONObject) {
var obj: JSONObject = obj
get() {
println("Getting a JSONObject")
return field
}
set(value) {
println("Setting a JSONObject to $value")
field = value
}
}
Dokka 配置(build.gradle
):
tasks.dokkaHtml {
dokkaSourceSets {
named("main") {
jdkVersion.set(8)
includes.from 'module-info.md'
samples.from 'samples/sample.kt'
reportUndocumented.set(true)
externalDocumentationLink {
url = new URL('http://stleary.github.io/JSON-java/')
}
}
}
}
我想在我的文档中附加一个指向[JSONObject] 引用的文档链接
我做错了什么?