How to create a custom backend

Posted by elygre on
URL: https://discuss.asciidoctor.org/How-to-create-a-custom-backend-tp2494.html

I wonder how I best go along creating a custom backend? What examples should I look at, is there a presentation or some documentation, etc?

My use case is this: In a documentation set, I need to generate separate HTML-pages for certain tables, to use as on-line help, e.g.:

* The system has two forms "userform" and "groupform"
* The documentation has sections describing these forms, and others
* For each of these forms, there is a table some labelled as "helptable,userform" and "helptable,groupform" (or the like)
* For each "helptable" in the asciidoctor source, generate a separate html-file "userform-help.html" and "groupform-help.html", containing only these forms.

We already generate all this from another format, so the only thing I need to know (I think!) is how to create a new backend :-)

Eirik