Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
5 posts
|
Hi all,
I've been using asciidoctor 0.1.3 successfully in the following manner: asciidoctor -v -b html5 -D target/html5//cookbook -a stylesheet=../stylesheets/riak.css src/main/asciidoc/cookbook/index.adocMy adoc source is in src/main/asciidoc & my stylesheets are in src/main/stylesheets. After upgrading to 0.1.4, there is no more stylesheet link in my generated html. I saw that one of the changes in 0.1.4 is for asciidoctor to embed stylesheets by default now, but don't quite understand how I'm supposed to change my invocation. How do I need to modify my command line above to get the riak.css stylesheet to be used when generating with the html5 back end? Thanks, Matthew |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
5 posts
|
Answered my own question:
asciidoctor -v -b html5 -D target/html5//cookbook -a stylesheet=src/main/stylesheets/riak.css src/main/asciidoc/cookbook/index.adocPointing the stylesheet attribute at the stylesheet source caused it to be embedded. I'll have to decide if I want all generated html files to link to a shared stylesheet or not later on. Sorry for the noise, if any. -matthew |
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
2681 posts
|
Matthew, I'm glad you brought this up. One of the changes in 0.1.4 is that stylesheets are embedded by default instead of linked. To link instead, simply pass this attribute: -a linkcss That will make Asciidoctor match the behavior of 0.1.3. Cheers, -Dan On Mon, Sep 23, 2013 at 11:24 AM, matthewadams12 [via Asciidoctor :: Discussion] <[hidden email]> wrote: Answered my own question:asciidoctor -v -b html5 -D target/html5//cookbook -a stylesheet=src/main/stylesheets/riak.css src/main/asciidoc/cookbook/index.adocPointing the stylesheet attribute at the stylesheet source caused it to be embedded. I'll have to decide if I want all generated html files to link to a shared stylesheet or not later on. 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 |
5 posts
|
Cool, thanks! On Mon, Sep 23, 2013 at 2:17 PM, mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
... [show rest of quote] [hidden email] |
Free forum by Nabble | Edit this page |