diff --git a/README.md b/README.md index 45dd1c27e..4351fc0cb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [](https://zenodo.org/badge/latestdoi/129486382)  [](https://search.maven.org/search?q=g:%22space.kscience%22) -[](https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven/space/kscience/) # KMath diff --git a/build.gradle.kts b/build.gradle.kts index f6d037386..ccc9088f6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,7 @@ allprojects { version = "0.4.3-dev-1" } -dependencies{ +dependencies { subprojects.forEach { dokka(it) } @@ -27,23 +27,29 @@ subprojects { if (name.startsWith("kmath")) apply<MavenPublishPlugin>() plugins.withId("org.jetbrains.dokka") { - tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial> { - dependsOn(tasks["assemble"]) - - dokkaSourceSets.all { - val readmeFile = this@subprojects.projectDir.resolve("README.md") + dokka { + dokkaSourceSets.configureEach { + val readmeFile = projectDir.resolve("README.md") if (readmeFile.exists()) includes.from(readmeFile) val kotlinDirPath = "src/$name/kotlin" val kotlinDir = file(kotlinDirPath) if (kotlinDir.exists()) sourceLink { localDirectory.set(kotlinDir) - - remoteUrl.set( - uri("https://github.com/SciProgCentre/kmath/tree/master/${this@subprojects.name}/$kotlinDirPath").toURL() + remoteUrl( + "https://github.com/SciProgCentre/kmath/tree/master/${name}/$kotlinDirPath" ) } + 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://deeplearning4j.org/api/latest/") externalDocumentationLink("https://axelclk.bitbucket.io/symja/javadoc/") @@ -54,11 +60,12 @@ subprojects { ) externalDocumentationLink( - "https://breandan.net/kotlingrad/kotlingrad/", - "https://breandan.net/kotlingrad/kotlingrad/kotlingrad/package-list", + "https://breandan.net/kotlingrad/kotlingrad", + "https://breandan.net/kotlingrad/package-list", ) } } + } }