Closed chrisvest closed 10 years ago
Maybe this should be called out better, but to include files in other directories you need to specify the -include-basedir
parameter.
For instance: https://github.com/asciidoctor/asciidoclet/blob/master/pom.xml#L124
Let me know if this works for you.
Yes, that works. Thanks.
It looks like the
include::some-file.txt[]
macro only works for files that I make javadoc copy over into thetarget/site/apidocs/
directory, which would be stuff in thesrc/main/javadoc/resources/**/doc-files
directories. And then only if I explicitly enable this with by adding a<docfilessubdirs>true</docfilessubdirs>
configuration to themaven-javadoc-plugin
plugin in mypom.xml
file.It would be really helpful if at least the test-sources directory became available to include from, because then the example code I include will be checked by the compiler on build.