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

replace-with: ccutil compiles but the content is not being included #71

Closed handreyrc closed 4 years ago

handreyrc commented 4 years ago

The replace-with is working and generating the includes. However, after running ccutil the content is not being included in the html.

e.g. [replace-with="../creating-running/ref-kogito-app-examples.adoc" replace-with-id="ref-kogito-app-examples"] link:{asciidoc-dir}/creating-running/chap-kogito-creating-running.adoc[My Test].

Actual output: include::../creating-running/ref-kogito-app-examples.adoc[tags=ref-kogito-app-examples]

Expected output: include::../creating-running/ref-kogito-app-examples.adoc[leveloffset=+1]

LightGuard commented 4 years ago

Does it make sense to have a replace-with-id ? Should it simply be replace-with?

handreyrc commented 4 years ago

I think it is better to keep as flexible as possible. Maybe we could fix it this way: [replace-with="../creating-running/ref-kogito-app-examples.adoc" replace-with-param="tag=ref-kogito-app-examples"] output -> include::../creating-running/ref-kogito-app-examples.adoc[tags=ref-kogito-app-examples]

[replace-with="../creating-running/ref-kogito-app-examples.adoc" replace-with-param="leveloffset=+1"] output-> include::../creating-running/ref-kogito-app-examples.adoc[leveloffset=+1]