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



92
93
94
# File 'lib/asciidoctor/syntax_highlighter/pygments.rb', line 92

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



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

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