For example: if this directory had these classes: ...
# announcements
m
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
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