asciidoc2confluence
asciidoc2confluence copied to clipboard
Multi modules
I have a maven project with any submoduls.
root
-
modul a -- src ---main --- docs
-
modul b -- src ---main --- docs
-
modul c -- modul c 1 --- src ----main ---- docs -- modul c 2 --- src ----main ---- docs
how can i write docs in seperate folder and generate and push it to confluence ?
I think the solution will be to set the docDir
and inputPath
both to match the root of your project.
https://doctoolchain.github.io/docToolchain/#_configuration_2
You should be then able to reference your docs with the full path like this
inputFiles = [
[file: 'modul a/src/main/docs/doc.adoc', formats: ['html','pdf']],
[file: 'modul b/src/main/docs/doc.adoc', formats: ['html','pdf']],
]
with this setting, generateHTML
should already work and generate HTML file in your build
folder.
You then have to reference these file - again with the full path within the build
folder from within your confluence config.
oh. wait. I just noticed that you created this question within the "old" asciidoc2confluence project.
Please take a look at docToolchain https://doctoolchain.github.io/docToolchain/ - even if you don't want to use the gradle build, you fill find a more up-to-date version of asciidoc2confluence and some more docs...