CLOVIS
05/03/2025, 5:39 PMorg.jetbrains.dokka.gradle.formats.DokkaHtmlPlugin
, there is a check but no configuration at all. The Javadoc plugin doesn't aggregate modules, and the other formats haven't been migrated to the Gradle plugin?Adam S
05/03/2025, 8:00 PMCLOVIS
05/05/2025, 7:37 AM:gfm-template-processing
, :jekyll-template-processing
, etc, there seems to be a quite a bit that needs to happen at aggregation time? Most notably, resolving cross-module links.CLOVIS
05/05/2025, 7:38 AMAdam S
05/05/2025, 8:06 AMAdam S
05/05/2025, 8:08 AMI don't think the other formats are supported by the Gradle plugin?Yeah, that's right
Adam S
05/05/2025, 8:09 AMallModulesPagePlugin
referenced in org.jetbrains.dokka.gfm.templateProcessing.JekyllTemplateProcessingPlugin
. I wonder what that's aboutAdam S
05/05/2025, 8:23 AMCLOVIS
05/05/2025, 8:34 AMCLOVIS
05/05/2025, 8:35 AMCLOVIS
05/05/2025, 8:36 AMAdam S
05/05/2025, 9:04 AMAdam S
05/05/2025, 9:06 AMAdam S
05/05/2025, 9:06 AMCLOVIS
05/05/2025, 9:25 AMbut the actual link seems to be generated correctlyIt's not, the file is
<module>/index.html
. It currently contains a relative link <module>/foo.html
, which therefore leads to <module>/<module>/foo.html
.
The link in the file should be foo.html
, since that page is in the same directory as the module page.Adam S
05/05/2025, 9:26 AM<https://opensavvy.gitlab.io/ktmongo/docs/api/-kotlin> -b-s-o-n • -based on the official -mongo-d-b implementation/opensavvy.ktmongo.bson.official/index.html
But the (incorrect) generated link is
<https://opensavvy.gitlab.io/ktmongo/docs/api/-kotlin> -b-s-o-n • -based on the official -mongo-d-b implementation/-kotlin -b-s-o-n • -based on the official -mongo-d-b implementation/opensavvy.ktmongo.bson.official/index.html
The -kotlin -b-s-o-n • -based on the official -mongo-d-b implementation
part is repeated twice, so I guess either the location provider is accidentally duplicating the module name, or the actual Documentable has incorrect data?CLOVIS
05/05/2025, 9:26 AMDid you set up something similar?I did not. My current setup is essentially a copy-paste of the
:gfm
plugin, without the template processing part.CLOVIS
05/05/2025, 9:27 AMso I guess either the location provider is accidentally duplicating the module name, or the actual Documentable has incorrect data?My best guess is that I broke the LocationProvider while modifying it, making it asymmetric (in one direction and the other it gives differents paths)
CLOVIS
05/05/2025, 9:27 AMAdam S
05/05/2025, 9:29 AMCLOVIS
05/05/2025, 9:30 AMCLOVIS
05/05/2025, 9:31 AMCLOVIS
05/05/2025, 9:32 AMAdam S
05/05/2025, 9:33 AMAdam S
05/05/2025, 9:36 AMCLOVIS
05/05/2025, 9:42 AMAdam S
05/05/2025, 9:55 AM../$modulePath
, or (like I think you're suggesting) create non-clashing module index pages.
• The module locations are dynamic or configurable, so you'd need multi-round processing (like the HTML plugin) to finalise the links.Adam S
05/05/2025, 10:00 AMCLOVIS
05/05/2025, 10:02 AMapi/
index.md # all-modules-page
<module1>/
index.md # module-level page
<package1>/
index.md # package-level page
A.md # class A
<package2>/
…
<module2>/
…