Bryan Herbst
03/17/2021, 1:30 PM:foo:bar
would have its docs output to /docs/foo/bar
Overall this is still working, but 1.4.30 is now generating an extra index.md
in /docs/foo
. It is actually copying the index.md from the last module it generates docs for, so e.g. /docs/foo/index.md
is identical to /docs/foo/bar/index.md
Bryan Herbst
03/17/2021, 1:30 PMdokkaGfm {
def tokenizedPath = project.path.tokenize(":")
def outputPath = "$rootDir/docs/api/${tokenizedPath.subList(0, tokenizedPath.size() - 1).join("/")}"
outputDirectory = file(outputPath)
}
Bryan Herbst
03/17/2021, 1:31 PMKamil Doległo
03/17/2021, 2:17 PMset()
?Bryan Herbst
03/17/2021, 2:59 PMoutputDirectory.set(file(outputPath))
The docs are getting generated in the right directories, I’m just getting those extra index.md
files in the intermediate directoriesKamil Doległo
03/18/2021, 12:02 AMBryan Herbst
03/18/2021, 2:35 PMKamil Doległo
03/23/2021, 1:20 PMBryan Herbst
03/23/2021, 1:26 PMoutputDirectory
?
With the current behavior, only one index.md is published from a single module and the index.md of all the other modules is lostKamil Doległo
03/23/2021, 1:27 PMdokkaGfmMultiModule
task which handles this situation correctlyBryan Herbst
03/23/2021, 1:28 PMBryan Herbst
03/23/2021, 1:28 PMKamil Doległo
03/23/2021, 1:33 PM1.4.30
we actually released a new multimodule support. It’s based on template files, eg. each module generates a template documentation (without internal links and so on) and then the root task collects those templates and fills in the blanks. The one important thing to note is that the module-level task to configure those templating (eg. add external links, includes and so on) is called dokkaGfmPartial
(instead of the regular dokkaGfm
, which still exists of course). If you have some bits generated by yourself, you can try the dokkaGfmCollector
which should theoretically collect everything and create a multimodule page. I haven’t tested it in a while though