Extra content for HTML & Docbook backends

You may need to include extra content into the head of the exported document. For example, you might want to include jQuery inside the <head> element of the HTML export. To do so, first create a docinfo file in your source directory i.e. src/docs/asciidoc/docinfo.html containing the content to include, in this case the <script> tag to load jQuery.

<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>

Then, add the docinfo1 attribute to the attributes list in the previous example:

asciidoctorj { (1)
    attribute 'docinfo', ''
1 Substitute asciidoctorjs if you are using the Asciidoctor.js engine.

See Docinfo Files for more information on docinfo and friends.