module Asciidoctor::SyntaxHighlighter::PygmentsAdapter::Styles

Constants

DEFAULT_STYLE

Public Instance Methods

read_stylesheet(style) click to toggle source
# 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) click to toggle source
# File lib/asciidoctor/syntax_highlighter/pygments.rb, line 101
def stylesheet_basename style
  %(pygments-#{style || DEFAULT_STYLE}.css)
end