I'm looking at a dokka example project for MPP pro...
# dokka
a
I'm looking at a dokka example project for MPP projects and I'm trying to figure out how to use this:
Copy code
val global by creating {
    // this is a special block for passing perPackageOptions,
    // externalDocumentationLinks and sourceLinks to all other platforms
    perPackageOption {
        // suppress a package on all platforms
        prefix = "shouldbesuppressed"
        suppress = true
    }
}
How do I add external documentation links and source links to other platforms?
Also is there a way to configure this once for multi-module projects? right now I have to copy this config to each and every module
k
How do I add external documentation links and source links to other platforms?
Like in an ordinary passConfig:
Copy code
val global by creating {
    externalDoculentationLink {
        ...
    }
}
Also is there a way to configure this once for multi-module projects?
You can document the whole project (probably) with
subProjects
(dokka option, please note the case sensitivity). If this doesn’t suit your needs, you can use Gradle’s
buildSrc
for this (I silently assumed that you use Gradle)
a
Thanks, I'm trying to use
subProjects
but it doesn't really work (see my other question)