(my emphasis.)
actually, looking at ldoc, i see there are some smarts baked in to support inlining references to examples using a @see tag so this may not be so bad. (in any event we should see what’s actually supported.)
here’s a pointer to the relevant docs:
https://stevedonovan.github.io/ldoc/manual/doc.md.html#Examples
as for API doc styling, this bit provides a bit of context for how ldoc uses templates and css:
https://stevedonovan.github.io/ldoc/manual/doc.md.html#Generating_HTML
fwiw, the command we’re using to generate docs in the build is just this:
(cd lua; ldoc -c ../config.ld .)
playing w/ styling and templates should just be a matter of defining the right files (.lua and css respectively) and passing them along in the command line. if folks want any help integrating, feel free to ping me.