Reputation: 13235
I would like to include application version number (version
from build.gradle
).
I see no way to pass some custom variables to ascidoc and use them in generated documentation. Is it possible?
Upvotes: 0
Views: 305
Reputation: 13235
Passing custom variables from gradle can be done using
asciidoctor {
attributes "build=${build}"
}
Then defined attribute may be refered in adoc
file as {build}
Upvotes: 2