Is there a way to include source code snippets in Dokka? I’m working on a library and I really like the idea of having very rich API docs, however, I’m also super-paranoid of having broken code samples or it just being a chore to maintain as I evolve the API. I know ratpack.io does something like that with Javadocs but it’s a custom layer over the regular tooling.
s
semoro
05/07/2018, 6:44 PM
Check how stdlib samples work, it basically a tests, and a samples at the same time
semoro
05/07/2018, 6:45 PM
It uses @sample tag, combined with samples path passed to Dokka