Class: AlCharts::AssetsGenerator
- Inherits:
-
Jekyll::Generator
- Object
- Jekyll::Generator
- AlCharts::AssetsGenerator
- Defined in:
- lib/al_charts.rb
Instance Method Summary collapse
Instance Method Details
#generate(site) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/al_charts.rb', line 14 def generate(site) plugin_lib_path = File.('.', __dir__) Dir.glob(File.join(plugin_lib_path, ASSETS_DIR, PLUGIN_NAME, JS_DIR, '*.js')).each do |source_path| site.static_files << PluginStaticFile.new(site, plugin_lib_path, File.join(ASSETS_DIR, PLUGIN_NAME, JS_DIR), File.basename(source_path)) end end |