Hi! I'm trying to relocate the module page (instea...
# dokka
c
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
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
Thank you! Is that the value that is used to generate the path of every other page?
o
yeah, that's correct
🙏 1