class Jekyll::Katex::Configuration
For holding configuration values specific to the jekyll-katex plugin
Constants
- CONFIG
Merge the configurations (it would be nicer if there would be a “deep” merge operation for Hashes, instead we just merge the nested rendering_options Hash manually)
- CONFIG_DEFAULTS
- JEKYLL_CONFIG
- LOG_TOPIC
Public Class Methods
global_rendering_options()
click to toggle source
# File lib/jekyll-katex/configuration.rb, line 40 def self.global_rendering_options { throwOnError: CONFIG['rendering_options']['throw_error'], errorColor: CONFIG['rendering_options']['error_color'] } end
js_path()
click to toggle source
# File lib/jekyll-katex/configuration.rb, line 28 def self.js_path js_filename = CONFIG['js_filename'] js_path = CONFIG['js_path'] katex_js = Dir.glob(File.join(js_path, '**', js_filename)).first raise 'Could not find KaTeX javascript file using provided configuration.' if katex_js.nil? Jekyll.logger.info LOG_TOPIC, "Found KaTeX js at: #{katex_js}" katex_js end