Login  Register

Asciidoctor cmd line vs maven plugin (is the behavior the same)

Posted by ch007m on Nov 26, 2013; 3:29pm
URL: https://discuss.asciidoctor.org/Asciidoctor-cmd-line-vs-maven-plugin-is-the-behavior-the-same-tp1103.html

Hi,

Is the rendering done by asciidoctor command and asciidoctor maven plugin done exactly in the same way ?

Why this question : because I didn't get the same result using this instruction :

asciidoctor -b html5 -T A/target/maven-shared-archive-resources/asciidoctor-backend/haml/html5 -a embedAssets -a stylesheet=target/content/LMSClass/A/css/my_theme.css A/docs/new_proj_pg1.txt --out-file target/content/LMSClass/A/new_proj_pg1.html

and what maven plugin do

[DEBUG] Goal:          org.asciidoctor:asciidoctor-maven-plugin:0.1.3.1:process-asciidoc (output-html)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <attributes>
    <max-width>1024px</max-width>
    <icons/>
    <stylesheet>/Users/chmoulli/Temp/openshift/modules/A/target/maven-shared-archive-resources/css/my_theme.css</stylesheet>
</attributes>
  <backend default-value="docbook">html5</backend>
  <embedAssets>true</embedAssets>
  <eruby>${asciidoctor.eruby}</eruby>
    <outputDirectory default-value="${project.build.directory}/generated-docs">/Users/chmoulli/Temp/openshift/modules/A/target/generated-docs/LMSClass/A</outputDirectory>
  <sourceDirectory default-value="${basedir}/src/main/asciidoc">/Users/chmoulli/Temp/openshift/modules/A/docs</sourceDirectory>
   <templateDir>/Users/chmoulli/Temp/openshift/modules/A/target/maven-shared-archive-resources/asciidoctor-backend/haml/html5</templateDir>
</configuration>

With asciidoctor executed with command line the rendering of the admonition icons (font-awesome)  is done correctly
as I can see the icons and not with asciidoctor maven plugin / command line

Remark :
- HTML + CSS generated is the same,
- There in both cases a link to css
- I become crazy as HTML generated is the same :-(

</style>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css">
<style>

Question : How can I very that font-awesone / icons works correctly ?





Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard