As a newcomer to Asciidoc, I'm looking for guidance on how to include files.

I like to edit with a preview, so I'm using AsciiDocFX as a starters 
editor. I specify an include like this:
include::installation.adoc[]

That works fine, and it renders as a link rather than actually including 
(which is also fine during authoring).
However when building the document using the Gradle Asciidoctor plugin, the 
included document cannot be found because it tries to resolve the include 
relative to the project directory.
The obvious way to solve this is:
include::{projectdir}/src/doc/installation.adoc[]

But this messes up when displaying in the editor. It shows:
Unresolved directive in <stdin> - 
include::{projectdir}/src/doc/installation.adoc[]

So I'm wondering what other do as a best practice: specify a directory or 
not. And if not, how do you get the Gradle Asciidoctor plugin to find the 
included files?

Thanks,
Michael

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to