Re: Trouble trying to get DocInfo to work...

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/Trouble-trying-to-get-DocInfo-to-work-tp8239p8243.html

In order for docinfo to be picked up, you have to enable it. See https://asciidoctor.org/docs/user-manual/#naming-docinfo-files

Best Regards,

-Dan

On Fri, Sep 11, 2020 at 7:26 PM steveg [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I am creating a DocBook from my adoc and having trouble getting DocInfo to work.   Unless I am mistaken, the DocInfo feature should allow me to insert elements into the <info> tag of the created DocBook.

To test this I have created the following test case (uploaded as files) .

test.adoc - Contains main document
docinfo.xml - Infomation to be included

I am creating the DocBook using the following command (using the ruby Asciidoctor 2.0.10 version running on windows).

asciidoctor --backend docbook --doctype book --out-file .\test.docbook .\test.adoc

The resulting file test.docbook, does not contain the information from docinfo.xml.

I have tried several variants (private vs shared, header with no footer etc) and have been unable to get this to work.  This test case uses  shared-head 

Any help would be appreciated.

Cheers
Steve





If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Trouble-trying-to-get-DocInfo-to-work-tp8239.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux