Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
This post was updated on Sep 12, 2013; 11:30pm.
Hello, I have a question. I'd like to do something like this at the top of my AsciiDoc file to apply a stylesheet from a consistent directory.
:styledir: ~/lib/asciidoctor/stylesheets :stylesheet: {styledir}/riak.css However, looking at test/paths_test.rb, it doesn't look like Asciidoctor's path resolver supports tilde home directory-style paths. Is there a way to achieve this effect without manually resolving my home directory? The stylesheet is included correctly if I do. |
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 would think ruby will drop down and let the OS complete the path. Give it a try and find out :) In the worst case you found a bug we can fix!
On Thu, Sep 12, 2013 at 5:15 PM, neontapir [via Asciidoctor :: Discussion] <[hidden email]> wrote: Hello, I have a question. I'd like to do something like this at the top of my AsciiDoc file. |
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 apologize, my post was poorly worded. I did indeed confirm that it does not resolve the path.
The output is: asciidoctor: WARNING: file does not exist or cannot be read: /Users/neontapir/Documents/and/so/on/~/Documents/reference/asciidoc/stylesheets/golo.css I add an issue on github. Thanks! |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Ah. Yep, then we have a bug :) Baring anything Dan may have to say about this, could you please submit a bug at https://github.com/asciidoctor/asciidoctor/issues?
On Thu, Sep 12, 2013 at 5:33 PM, neontapir [via Asciidoctor :: Discussion] <[hidden email]> wrote: I apologize, my post was poorly worded. I did indeed confirm that it does not resolve the path. |
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
|
-Dan On Thu, Sep 12, 2013 at 5:47 PM, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:
... [show rest of quote] -- Dan Allen | http://google.com/profiles/dan.j.allen |
Free forum by Nabble | Edit this page |