Login  Register

Re: Gradle asciidoctor plugin v2 not working

Posted by DocEvaluator on Apr 25, 2019; 2:25pm
URL: https://discuss.asciidoctor.org/Gradle-asciidoctor-plugin-v2-not-working-tp6865p6873.html

abelsromero wrote
Ignoring "_index" is not an issue.
Files/folders with underscore prefix are considered hidden and are not treated.

This is handy if have "partials" files that are included by others and you don't want to convert them independently.
That's good to know. Maybe I will adjust our file names then. Right now, we have it the other way round, because we were always ONLY building "_index.adoc" which included files which started not with an underscore.

abelsromero wrote
However, ircc if you setup the file "_index.adoc" in the build script, it should work.
No, that's exactly what is not working:
asciidoctor {
  //...
  sources {
    include '_index.adoc'
  }
}
...will just do nothing -- just the same as if I give a non-existing file.