Update dokka configuration
This commit is contained in:
parent
8deaf1470a
commit
9d3d08e66b
@ -2,7 +2,6 @@
|
|||||||
[](https://zenodo.org/badge/latestdoi/129486382)
|
[](https://zenodo.org/badge/latestdoi/129486382)
|
||||||

|

|
||||||
[](https://search.maven.org/search?q=g:%22space.kscience%22)
|
[](https://search.maven.org/search?q=g:%22space.kscience%22)
|
||||||
[](https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven/space/kscience/)
|
|
||||||
|
|
||||||
# KMath
|
# KMath
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ allprojects {
|
|||||||
version = "0.4.3-dev-1"
|
version = "0.4.3-dev-1"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies{
|
dependencies {
|
||||||
subprojects.forEach {
|
subprojects.forEach {
|
||||||
dokka(it)
|
dokka(it)
|
||||||
}
|
}
|
||||||
@ -27,23 +27,29 @@ subprojects {
|
|||||||
if (name.startsWith("kmath")) apply<MavenPublishPlugin>()
|
if (name.startsWith("kmath")) apply<MavenPublishPlugin>()
|
||||||
|
|
||||||
plugins.withId("org.jetbrains.dokka") {
|
plugins.withId("org.jetbrains.dokka") {
|
||||||
tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial> {
|
dokka {
|
||||||
dependsOn(tasks["assemble"])
|
dokkaSourceSets.configureEach {
|
||||||
|
val readmeFile = projectDir.resolve("README.md")
|
||||||
dokkaSourceSets.all {
|
|
||||||
val readmeFile = this@subprojects.projectDir.resolve("README.md")
|
|
||||||
if (readmeFile.exists()) includes.from(readmeFile)
|
if (readmeFile.exists()) includes.from(readmeFile)
|
||||||
val kotlinDirPath = "src/$name/kotlin"
|
val kotlinDirPath = "src/$name/kotlin"
|
||||||
val kotlinDir = file(kotlinDirPath)
|
val kotlinDir = file(kotlinDirPath)
|
||||||
|
|
||||||
if (kotlinDir.exists()) sourceLink {
|
if (kotlinDir.exists()) sourceLink {
|
||||||
localDirectory.set(kotlinDir)
|
localDirectory.set(kotlinDir)
|
||||||
|
remoteUrl(
|
||||||
remoteUrl.set(
|
"https://github.com/SciProgCentre/kmath/tree/master/${name}/$kotlinDirPath"
|
||||||
uri("https://github.com/SciProgCentre/kmath/tree/master/${this@subprojects.name}/$kotlinDirPath").toURL()
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun externalDocumentationLink(url: String, packageListUrl: String? = null){
|
||||||
|
externalDocumentationLinks.register(url) {
|
||||||
|
url(url)
|
||||||
|
packageListUrl?.let {
|
||||||
|
packageListUrl(it)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
externalDocumentationLink("https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/")
|
externalDocumentationLink("https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/")
|
||||||
externalDocumentationLink("https://deeplearning4j.org/api/latest/")
|
externalDocumentationLink("https://deeplearning4j.org/api/latest/")
|
||||||
externalDocumentationLink("https://axelclk.bitbucket.io/symja/javadoc/")
|
externalDocumentationLink("https://axelclk.bitbucket.io/symja/javadoc/")
|
||||||
@ -54,11 +60,12 @@ subprojects {
|
|||||||
)
|
)
|
||||||
|
|
||||||
externalDocumentationLink(
|
externalDocumentationLink(
|
||||||
"https://breandan.net/kotlingrad/kotlingrad/",
|
"https://breandan.net/kotlingrad/kotlingrad",
|
||||||
"https://breandan.net/kotlingrad/kotlingrad/kotlingrad/package-list",
|
"https://breandan.net/kotlingrad/package-list",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user