I have a question. what is the default location fo...
# dokka
a
I have a question. what is the default location for package.md file? I really think there should be default. and the docs so less usefull.
c
Copy code
dokka {
    dokkaSourceSets.configureEach {
        include("README.md")
    }
}
if you want a different package definition per platform, you can do:
Copy code
dokka {
	dokkaSourceSets.configureEach {
		if (name.endsWith("Main") || name == "main") {
			val setName = name.removeSuffix("Main")

			val headerName =
				if (setName == "common" || name == "main") "README.md"
				else "README.$setName.md"

			val headerPath = "${project.projectDir}/$headerName"
			if (File(headerPath).exists())
				includes.from(headerPath)
			else
				logger.info("No specific documentation file found for $setName, expected to find $headerPath")
		}
}
a
Thanx @CLOVIS 😀