diff --git a/docs/build.gradle b/docs/build.gradle index 4e89f2c27e..d543950490 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -56,7 +56,7 @@ private List findSourcesWithName(String... approximateNames) }.collect { it.kotlin } } -tasks.dokkaHtml { +Object callback = { switch (true) { case project.hasProperty("DOKKA_PATH"): outputDirectory = project.property("DOKKA_PATH").toString() @@ -90,3 +90,6 @@ tasks.dokkaHtml { } } } + +tasks.dokkaGfm(callback) +tasks.dokkaHtml(callback)