The reason the stylesheet is not being copied (and otherwise not embedded even if you remove `linkcss`) is because the default safe mode for Asciidoctor disables file IO. You need to invoke Asciidoctor as follows:
Asciidoctor.convert_file(m[0], :to_dir => 'output', :in_place => true, :safe => :safe) Then your setup should work. -Dan On Wed, Jan 27, 2016 at 2:28 PM, Fernando Basso <[email protected]> wrote: > I have this content in Guardfile: > > Bundler.require(:default) > > require 'asciidoctor' > require 'erb' > > guard 'shell' do > watch(/^*\.adoc$/) do |m| > Asciidoctor.convert_file(m[0], :to_dir => 'output', :in_place => true) > end > end > > > and my .adoc files start with something like: > > = My Title > :source-highlighter: pygments > :pygments-css: class > :linkcss: > :toc: left > :sectlinks: > :webfonts!: > > If I generate the html versions from the command line, I get everything as > expected, styles for asciidoctor and pygments. > If I rely on guard and Asciidoctor.conver_file (as above), I get plain > html with no css files generated. The resulting > html file just has a link to asciidoctor.css (but not the the pygments > one), which does not exist because it is not generated. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. > -- Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
