Hi! I'm trying to relocate the module page (instead of generating
index.html
, I'd like to generate
<module_id>/index.html
. I'm overriding
DokkaLocationProvider
for the
ModulePageNode
. However, I don't see how to get the module name from that.
•
ModulePageNode.name
seems to be the module name. But that seems like a convenient coincidence more than expected behavior, no? If the user overrode the module name, I would expect the overriden name, not the module path?
• I see there is
dokkaContext.configuration.moduleName
; is that the module path (Gradle project name) or the module name (as overriden by the user)?
o
Oleg Yukhnevich
08/16/2024, 8:44 AM
Hey
Yes you can get module name via
DokkaContext::configuration.moduleName
.
it's value is
project.name
by default and could be overriden by the user
c
CLOVIS
08/17/2024, 9:10 AM
Thank you! Is that the value that is used to generate the path of every other page?