Class Asciidoctor::Stylesheets
In: lib/asciidoctor/stylesheets.rb
Parent: Object

A utility class for working with the built-in stylesheets.

Methods

Constants

DEFAULT_STYLESHEET_NAME = 'asciidoctor.css'
DEFAULT_PYGMENTS_STYLE = 'default'
STYLESHEETS_DATA_PATH = ::File.join DATA_PATH, 'stylesheets'

Public Class methods

Public Instance methods

Public: Read the contents of the default CodeRay stylesheet

returns the [String] CodeRay stylesheet data

def load_coderay

  (defined? ::CodeRay) ? true : !(Helpers.require_library 'coderay', true, :ignore).nil?

end

Public: Read the contents of the default Asciidoctor stylesheet

returns the [String] Asciidoctor stylesheet data

Public: Generate the Pygments stylesheet with the specified style.

returns the [String] Pygments stylesheet data

[Validate]