How to include a javascript in Asciidoc?

后端 未结 2 1571
广开言路
广开言路 2021-02-13 12:17

I\'m using asciidoctor-maven-plugin to convert .adoc files to html file... Would want to include a link to javascript in the generated html file... Basically would like to see s

2条回答
  •  后悔当初
    2021-02-13 12:37

    Use docinfo files, see the documentation for more detail.

    You create docinfo files by adding another file named -docinfo.html for HTML generation or -docinfo.xml for docbook generation. The contents of the docinfo file are copied into the generated output, in the head section for html. If you want to add things to the bottom of the document there are footer docinfo files for that. It follows the same as a normal docinfo but the file name is -docinfo-footer.html or -docinfo-footer.xml

    Happy docing :) Let me, or preferably the list know of any other maven issues you find.

提交回复
热议问题