One of my summertime goals is to put up a subsite that has the API docs. For now, all the functions are completely documented in the code. Loos in the
class.output.php file. Model your template after the included “Names” template. There’s also lot of documentation in the
class.template-parts.php that will be of use.
Hope that helps.