Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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, ... [show rest of quote] Dan Allen | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 : Dan Allen | http://google.com/profiles/dan.j.allen
|
Free forum by Nabble | Edit this page |