Module: Asciidoctor::SyntaxHighlighter::PygmentsAdapter::Styles

Includes:
Loader
Included in:
Asciidoctor::SyntaxHighlighter::PygmentsAdapter, Asciidoctor::SyntaxHighlighter::PygmentsAdapter
Defined in:
lib/asciidoctor/syntax_highlighter/pygments.rb

Instance Method Summary collapse

Instance Method Details

#read_stylesheet(style) ⇒ Object



97
98
99
# File 'lib/asciidoctor/syntax_highlighter/pygments.rb', line 97

def read_stylesheet style
  library_available? ? @@stylesheet_cache[style || DEFAULT_STYLE] || '/* Failed to load Pygments CSS. */' : '/* Pygments CSS disabled because Pygments is not available. */'
end

#stylesheet_basename(style) ⇒ Object



101
102
103
# File 'lib/asciidoctor/syntax_highlighter/pygments.rb', line 101

def stylesheet_basename style
  %(pygments-#{style || DEFAULT_STYLE}.css)
end