LightGuard / asciidoc-splitter

A splitter utility for helping create modular docs from chapter files.
BSD 2-Clause "Simplified" License
8 stars 8 forks source link

xrefs: Included direcly causing ccutil compiling errors #68

Closed handreyrc closed 4 years ago

handreyrc commented 4 years ago

Splitter is including xrefs not protected by makros breaking the ccutil compilation. Splitter parameters: java -jar target/asciidoc-splitter-1.0-SNAPSHOT.jar -s {source} -o {output} -i index.adoc -a KOGITO-ENT=true

ccutil output: path:output/titles-enterprise/kogito-creating-running Unknown ID or title "con-kogito-runtime-events_kogito-configuring", used as an internal cross reference

Actual: path: output/modules/creating-running/ref-kogito-glossary.adoc .Additional resources * {URL_CONFIGURING_KOGITO}#con-kogito-runtime-eventskogito-configuring[{PRODUCT} runtime events_] * {URL_CONFIGURING_KOGITO}#con-data-index-servicekogito-configuring[{PRODUCT} Data Index Service_] * xref:con-kogito-runtime-events_kogito-configuring[] * xref:con-data-index-service_kogito-configuring[]

Expected: path: target/modules/creating-running/ref-kogito-glossary.adoc .Additional resources \ifdef::KOGITO-ENT[] * {URL_CONFIGURING_KOGITO}#con-kogito-runtime-eventskogito-configuring[{PRODUCT} runtime events_] * {URL_CONFIGURING_KOGITO}#con-data-index-servicekogito-configuring[{PRODUCT} Data Index Service_] \endif::[] ifdef::KOGITO-COMM[] * xref:con-kogito-runtime-events_kogito-configuring[] * xref:con-data-index-service_kogito-configuring[] endif::

LightGuard commented 4 years ago

I think I solved this with the previous commit. Please update/close as needed.

handreyrc commented 4 years ago

Yes, it is covered by the last commit. Great job by the way!