Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Hello,
Currenlty I use asciidoctor with option -s to suppress output of header and footer because I insert the result of asciidoctor in my own layout. But, if I use a syntax highlighter (-a source-highlighter=pygments) with option -s, no CSS is ouputted, even with -a linkcss. So, is there any way to get the highlighter's stylesheet with option -s ? Thanks in advance, Regards, Victor |
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 am not sure that currently this is possible, because I think that if you suppress the headers, then the included scripts are also skipped. As a workaround I suggest you add them manually, and open an issue explaining this problem.
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
For now I will manually copy-paste the CSS but I don't like that :/
Where can I open this issue (github) ? Thanks for you answer ! |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Yes on github
El dissabte 4 de gener de 2014, mecanix [via Asciidoctor :: Discussion] ha escrit: For now I will manually copy-paste the CSS but I don't like that :/ -- Enviat amb Gmail Mobile |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
In reply to this post by mecanix
I confirm that if you select the option '-s', then the header (including css/js scripts) is removed.
Until now, the only option that we suggest you is to change the asciidoctor backend (https://github.com/asciidoctor/asciidoctor-backends). You can fork the project, change it and select it during the rendering : asciidoctor -T ../asciidoctor-backends/haml/... -b HTML5 ... = html5 or name of your backend Depending which template language you prefer to use you can select slim (http://slim-lang.com/), haml (http://haml.info/) or erb (http://www.ruby-doc.org/stdlib-2.1.0/libdoc/erb/rdoc/ERB.html).
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 |
Really good point!!! Anyway I think it would be a good idea to wait until Dan shows his view about -s option
El diumenge 5 de gener de 2014, ch007m [via Asciidoctor :: Discussion] ha escrit: I confirm that if you select the option '-s', then the header (including css/js scripts) is removed. -- Enviat amb Gmail Mobile |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
In reply to this post by ch007m
I do not know enough these languages to fork your backends :)
But is it possible to talk about an option/value to force to output CSS (and JS?) when -s is selected with source hightlighter ? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
In this case, we need a new option to use your own CSS/JS javascript file but with the header/footer generated by asciidoctor. What I suggest for the moment if you are not familiar with haml/slim/erb is that you have a look to the ascidoctor-stylesheet-factory which let's you to extend asciidoctor css/js and add what you would like to do : http://asciidoctor.org/docs/user-manual/#stylesheet-factory. You can create a new stylesheet, compile it using sass and use the css file created : asciidoctor -a stylesheet=colony.css -a stylesdir=../stylesheets sample.adoc
On Sun, Jan 5, 2014 at 6:53 PM, mecanix [via Asciidoctor :: Discussion] <[hidden email]> wrote: I do not know enough these languages to fork your backends :) Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
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 |
Yes well I think that this should be discussedcwith Dan too, anyway take a look to one backend you will see it is do intuitive and you only have to override the things to be change them but not all elements
El diumenge 5 de gener de 2014, ch007m [via Asciidoctor :: Discussion] ha escrit:
... [show rest of quote] -- Enviat amb Gmail Mobile |
Free forum by Nabble | Edit this page |