Login  Register

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

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

I use asciidoctor 0.1.4 on my mac :

asciidoctor --version
Asciidoctor 0.1.4 [http://asciidoctor.org]

and this version for asciidoctor maven plugin : 0.1.3.1

I have done a test using asciidoctor maven plugin 0.1.4-SNAPSHOT and get the same issue


Remark : That should be great to generate the asciidoctor command used by maven plugin so we can, in case of trouble, copy/paste the command and
compare
 with command life if there are differences




On Tue, Nov 26, 2013 at 5:14 PM, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Are you using Asciidoctor ruby version 0.1.3 when doing the comparison? If not you could do that, or build and use the snapshot of HEAD to use asciidoctor 0.1.4. 

Sent from Mailbox for iPhone


On Tue, Nov 26, 2013 at 8:30 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:

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 ?








If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-cmd-line-vs-maven-plugin-is-the-behavior-the-same-tp1103.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-cmd-line-vs-maven-plugin-is-the-behavior-the-same-tp1103p1104.html
To unsubscribe from Asciidoctor cmd line vs maven plugin (is the behavior the same), click here.
NAML



--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

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