Re: Why css, ... files are not copied using asciidoctor (-D) option
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:
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!)
On Fri, Oct 4, 2013 at 4:04 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
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 ?
If you reply to this email, your message will be added to the discussion below: