To configure Dokka for more than one configuration...
# dokka
a
To configure Dokka for more than one configuration (multiple tasks of Dokka, different settings) in Gradle, something like this, but not exactly because it doesn’t really work. So I have something wrong, what?!?
Copy code
task dokkaHtml(type: org.jetbrains.dokka.gradle.DokkaTask) {
            outputFormat = "html"
            outputDirectory = "${dokkaOutputBase}/${outputFormat}"
            linkMapping {
                dir = dokkaLinkDir
                url = dokkaLinkUrl
                suffix = dokkaLinkSuffix
            }
        }

        task dokkaMarkdown(type: org.jetbrains.dokka.gradle.DokkaTask) {
            outputFormat = "markdown"
            outputDirectory = "${dokkaOutputBase}/${outputFormat}"
            linkMapping {
                dir = dokkaLinkDir
                url = dokkaLinkUrl
                suffix = dokkaLinkSuffix
            }
        }
>> error: No such property: outputFormat for class: org.jetbrains.dokka.gradle.DokkaTask_Decorated