Skip to content

Commit

Permalink
Use asciidoctor.convertFile() instead of asciidoctor.renderFile() (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpanzer authored and abelsromero committed Nov 6, 2018
1 parent d82b333 commit c749461
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/asciidoctor/maven/AsciidoctorHttpMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected void doWork() throws MojoFailureException, MojoExecutionException {

@Override
protected void renderFile(final Asciidoctor asciidoctorInstance, final Map<String, Object> options, final File f) {
asciidoctorInstance.renderFile(f, options);
asciidoctorInstance.convertFile(f, options);

if (autoReloadInterval > 0 && backend.toLowerCase().startsWith("html")) {
final String filename = f.getName();
Expand Down Expand Up @@ -82,7 +82,7 @@ protected void renderFile(final Asciidoctor asciidoctorInstance, final Map<Strin
}
}
} else {
asciidoctorInstance.renderFile(f, options);
asciidoctorInstance.convertFile(f, options);
}

logRenderedFile(f);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/asciidoctor/maven/AsciidoctorMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private void synchronize() {
}

protected void renderFile(Asciidoctor asciidoctor, Map<String, Object> options, File f) {
asciidoctor.renderFile(f, options);
asciidoctor.convertFile(f, options);
logRenderedFile(f);
}

Expand Down

0 comments on commit c749461

Please sign in to comment.