On 12 June 2011 20:45, wolfgang <[email protected]> wrote: > Hi, > > I'm trying to add my own local CSS file > > asciidoc -b xhtml11 -a stylesheet=$(pwd)/example.css > example.ad ;; ok > asciidoc -b xhtml11 -a stylesheet=./example.css > example.ad ;; bad > > The second call tries to locate my CSS file within "/opt/local/etc/ > asciidoc" (i.e. Asciidocs side configuration folder) rather than in my > local folder. So it appears as if Asciidoc can't handle ".". > > Furtermore, > > how would I use my own stylesheet without adding them to my site's > stylesheet folder (where I don't have write access)? Eventually I came > up with > > asciidoc -b xhtml11 -a stylesheet=example -a stylesdir=$(pwd) > example.ad > > which appears to be close. It tries to include "xhtml11.css" in my > local folder and "example.css" within Asciidocs site configuration. > But how I make it use just plain "$(pwd)/example.css" ?? > > // Wolfgang >
Hi, The stylesheet attribute is for including extra system stylesheets so it is always relative to the system directory. As you found you can automagically get the css picked up from you local directory by naming it the same as the backend. Cheers Lex > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/asciidoc?hl=en. > > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
