Stylesheet images not working

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

Stylesheet images not working

noairbag
I created a new folder and a test document.
I moved the two .png files from the /images/github/ directory into the new folder and ran the following command:
asciidoctor -a stylesheet=github.css -a stylesdir=/usr/local/bin/asciidoctor-stylesheet-factory/stylesheets test.adoc

When I view the document, the images (for bullet items) do not show. The bullets appear when I render without using a stylesheet, so my syntax is correct.


Ted
Reply | Threaded
Open this post in threaded view
|

Re: Stylesheet images not working

Ted
Are you talking about this code in github.css?

#content ul li { background: url('../images/github/li-chevron.png?1407859961') 0 0.4em no-repeat; padding-left: .7em; }

You probably just need to altered the path to your image "li-chevron.png".
- Ted @TedAtCIS
Reply | Threaded
Open this post in threaded view
|

Re: Stylesheet images not working

mojavelinux
Administrator

On Mon, Apr 3, 2017 at 10:49 AM, Ted [via Asciidoctor :: Discussion] <[hidden email]> wrote:
You probably just need to altered the path to your image "li-chevron.png".

Correct.

-Dan


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Stylesheet images not working

noairbag
In reply to this post by Ted
I created /images/github/li-chevron.png outside of the output directory and it worked. Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Stylesheet images not working

mojavelinux
Administrator
I recommend changing the path to the file in the stylesheet.

-Dan

On Mon, Apr 3, 2017 at 7:44 PM, noairbag [via Asciidoctor :: Discussion] <[hidden email]> wrote:
creating /images/github/li-chevron.png in the output directory did not work.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Stylesheet-images-not-working-tp5455p5458.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux