module Jekyll::ViewSource
Constants
- CSS_SCOPE
- DEFAULT_CSS
- HTML
- HTML_FILE_PROP
- HTML_SOURCE_URL
- INFIX
- INFIXED_HTML
- INFIXED_TXT
- LINKBACK_PROP
- MARKDOWN
- MD
- MD_FILE_PROP
- MD_SOURCE_URL
- PR
- PRETTY_PROP
- PR_SOURCE_URL
- TXT
- VERSION
- VIEWSOURCE
- VIEWSOURCE_LOG
Public Class Methods
debug(item, msg)
click to toggle source
# File lib/jekyll-viewsource.rb, line 16 def self.debug(item, msg) if @debug info = item ? (item.respond_to?(:path) ? File.basename(item.path) : item) : 'main'.freeze msg = "[#{info}] #{msg}" Jekyll.logger.warn VIEWSOURCE_LOG, msg end end
debug_state(debug)
click to toggle source
# File lib/jekyll-viewsource.rb, line 8 def self.debug_state(debug) @debug ||= debug end
site(s = nil)
click to toggle source
# File lib/jekyll-viewsource.rb, line 29 def self.site(s = nil) @site ||= s end
warn(msg)
click to toggle source
# File lib/jekyll-viewsource.rb, line 12 def self.warn(msg) Jekyll.logger.warn VIEWSOURCE_LOG, msg end