Class: AlMath::AssetsGenerator
- Inherits:
-
Jekyll::Generator
- Object
- Jekyll::Generator
- AlMath::AssetsGenerator
- Defined in:
- lib/al_math.rb
Instance Method Summary collapse
Instance Method Details
#generate(site) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/al_math.rb', line 13 def generate(site) plugin_lib_path = File.('.', __dir__) Dir.glob(File.join(plugin_lib_path, ASSETS_DIR, PLUGIN_NAME, '**', '*')).each do |source_path| next if File.directory?(source_path) relative_dir = File.dirname(source_path).sub("#{plugin_lib_path}/", '') site.static_files << PluginStaticFile.new(site, plugin_lib_path, relative_dir, File.basename(source_path)) end end |