Re: How can I use asciidoc conf file
Posted by
mojavelinux on
Nov 23, 2013; 3:28am
URL: https://discuss.asciidoctor.org/How-can-I-use-asciidoc-conf-file-tp1005p1062.html
In order to include custom header and footer HTML, you need to override the document template. You can do this by
1. Grabbing one of the document templates from the asciidoctor-backends repository:
2. Save the file to a custom backends directory of your choice
3. Modifying the template however you want
4. Specifying the location of the custom backends directory when you run Asciidoctor
asciidoctor -T /path/to/backends file.adoc
If calling Asciidoctor via the API, use the option :templates_dir => '/path/to/backends'
Note that you can also use the docinfo footer file to include custom HTML, but you are limited to where Asciidoctor places it by default (unless you also modify the document template).
-Dan