Class: JekyllIndico::GetIndico
- Inherits:
-
Jekyll::Generator
- Object
- Jekyll::Generator
- JekyllIndico::GetIndico
- Defined in:
- lib/jekyll-indico/generator.rb
Overview
This is a Jekyll Generator
Instance Method Summary collapse
-
#generate(site) ⇒ Object
Main entry point for Jekyll.
Instance Method Details
#generate(site) ⇒ Object
Main entry point for Jekyll
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/jekyll-indico/generator.rb', line 15 def generate(site) @site = site @cache_msg = @site.config.dig('indico', 'cache-command') meeting_ids = @site.config.dig('indico', 'ids') raise MissingIDs, 'indico: ids: MISSING from your config!' unless meeting_ids raise MissingIDs, 'indico: ids: must be a hash!' unless meeting_ids.is_a?(Hash) meeting_ids.each do |name, number| collect_meeting(name.to_s, number) end end |