Open motorro opened 3 years ago
Maybe https://github.com/SBNTT/mpp-game-docs can helps
I've also come across this with the html documentation and I can't even find a documentationFileName
option (version 1.4.20). I can rename the the -modules.html
to index.html
(not a big deal) but that still doesn't allow any link back to the root of the documentation once you are inside a module.
The collector works fine, but discards any reference to the modules of course (which I'd like to preserve).
+1 for this issue. projects are everyday bigger and more multi-module.
I've developed a very similar script (below), but the contents from dokka.md
are only applied to individual modules. I tried to an API similar to the includes.from("
for the dokkaJekyllCollector
task but there isn't any.
Any workaround or solution here?
fun Project.applyDokka() {
apply(plugin = PluginIds.Dokka)
tasks.named<org.jetbrains.dokka.gradle.DokkaTask>("dokkaJekyll") {
outputDirectory.set(File(buildDir, "documentation"))
moduleName.set(this.project.name)
suppressObviousFunctions.set(true)
dokkaSourceSets {
configureEach {
includes.from("${rootProject.rootDir}/dokka.md")
perPackageOption {
matchingRegex.set(""".*\.internal.*""")
suppress.set(true)
}
noAndroidSdkLink.set(false)
}
}
}
}
Question I can't figure out how to build github pages folder for my multi-module project with 1.4
dokkaGfmMultiModule
/dokkaGfmCollector
tasks. I used to gather dokka outputs with a recipe from here and had the build folder with:index.md
at the the root level based on top-levelmodule.md
I've tried to build the same with Dokka 1.4 and failed with both tasks
dokkaGfmCollector Almost does the job the way it used to be:
index.md
merging it with those in modules if settingincludes.from ("${projectDir}/module.md")
in dokka tasksBut:
project
subfolder ofoutputDirectory
and I can't figure out how to get rid of this extra level or at least to rename itmodule.md
of submodules toindex.md
adding someproject
header with no info and no way to define this top-level contentdokkaGfmMultiModule
index.md
- just-modules.md
documentationFileName
seems to define top-level template according to documentation. However it defines the top-level file for each sub-module and task fails if there is nodocumentationFileName
file in each module directoryInstallation
Additional context Some top-level
build.gradle
abstract. Full project with integration attempt available here: