https://kotlinlang.org logo
#announcements
Title
# announcements
m

mandeep

06/04/2019, 11:14 PM
For example: if this directory had these classes:
Copy code
class Foo {
   fun bar() {
        println("bar")
   }

   internal fun bar2() {
        println("bar2")
   }
}

internal class Foo2
It might output something like:
Copy code
// public_api.txt
class Foo {
   fun bar()
}
c

Casey Brooks

06/05/2019, 2:33 PM
I maintain a project that does pretty much that. Orchid generates a full website using data pulled from Dokka (https://orchid.netlify.com/plugins/OrchidKotlindoc), or the internals can be used simply as a library which produces a JSON model of your Kotlin code (https://github.com/copper-leaf/dokka-json). You could use that library to create the text files you want