Why css, ... files are not copied using asciidoctor (-D) option

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Why css, ... files are not copied using asciidoctor (-D) option

ch007m
Hi,

When I run the following command :

asciidoctor -b html5 -a linkcss -a stylesdir=./styles -a stylesheet=asciidoctor.css -D generated test.adoc

The stylesheet file asciidoctor.css is not copied under generated/styles directory.

Is there a trick to achieve that ?

Regards,

Charles
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
|

Re: Why css, ... files are not copied using asciidoctor (-D) option

mojavelinux
Administrator
Charles,

When you specify a custom stylesheet, Asciidoctor 0.1.4 doesn't copy it to the output directory. That will be fixed in the next version.

Although the stylesheet name you are providing is "asciidoctor.css", Asciidoctor still sees that as a custom stylesheet. If you want Asciidoctor to copy the default stylesheet to the output directory, then just don't set the stylesheets attribute.

This command should work as you expect:

 $ asciidoctor -b html5 -a linkcss -a stylesdir=./styles -D generated test.adoc

After running the command, the generated folder should look like:

generated/
  styles/
    asciidoctor.css
  test.html

Asciidoctor 0.1.4 copies the default stylesheet (but not custom stylesheets) to the output directory when the linkcss attribute is set. To disable this behavior, unset the copycss attribute (e.g., -a copycss!)

-Dan



On Fri, Oct 4, 2013 at 4:04 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

When I run the following command :

asciidoctor -b html5 -a linkcss -a stylesdir=./styles -a stylesheet=asciidoctor.css -D generated test.adoc

The stylesheet file asciidoctor.css is not copied under generated/styles directory.

Is there a trick to achieve that ?

Regards,

Charles


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Why-css-files-are-not-copied-using-asciidoctor-D-option-tp697.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Why css, ... files are not copied using asciidoctor (-D) option

ch007m
I have done this test but generated folder just contain the html page created :

asciidoctor -a stylesheet=gpe_theme.css -a stylesdir=./styles -a linkcss -a docinfo  -D generated  test.adoc
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
|

Re: Why css, ... files are not copied using asciidoctor (-D) option

mojavelinux
Administrator
Charles,

The stylesheet isn't copied because you are using a custom stylesheet. The "copycss" support for custom stylesheets is planned for the next Asciidoctor release. See: https://github.com/asciidoctor/asciidoctor/issues/300

-Dan


On Fri, Oct 4, 2013 at 5:39 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I have done this test but generated folder just contain the html page created :

asciidoctor -a stylesheet=gpe_theme.css -a stylesdir=./styles -a linkcss -a docinfo  -D generated  test.adoc



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Why-css-files-are-not-copied-using-asciidoctor-D-option-tp697p705.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--