I installed Ruby and Asciidoctor 0.1.4, and the issue does not reproduce. Asciidoctor finds and includes the file as you describe. So I'm guessing that it must be something in the Gradle plugin.
On Sunday, July 6, 2014 12:20:22 AM UTC+2, Lex Trotman wrote: > > Hi Michael > > Since your question seems to be specific to Asciidoctor you might be > better to ask there directly. > > The specification says `include` loads relative pathnames relative to > the importing document, specifically so the actual location of the > tree doesn't matter, and you don't need to provide an absolute > pathname that changes each time you move the files. > > Cheers > Lex > > > On 6 July 2014 01:32, Michael <[email protected] <javascript:>> wrote: > > 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] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at http://groups.google.com/group/asciidoc. > > For more options, visit https://groups.google.com/d/optout. > -- 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.
