Class: Jekyll::OpenProjectHelpers::OpenProjectReader

Inherits:
JekyllData::Reader
  • Object
show all
Defined in:
lib/jekyll-theme-open-project-helpers/project_data_reader.rb

Overview

Below deals with fetching each open project’s data from its site’s repo (such as posts, template includes, software and specs) and reading it into ‘projects’ collection docs.

Constant Summary collapse

@@siteconfig =

TODO: Switch to @site.config?

Jekyll.configuration({})

Instance Method Summary collapse

Instance Method Details

#readObject



78
79
80
81
82
83
84
85
86
87
# File 'lib/jekyll-theme-open-project-helpers/project_data_reader.rb', line 78

def read
  super
  if @site.config['is_hub']
    fetch_and_read_projects
  else
    fetch_and_read_software('software')
    fetch_and_read_specs('specs', true)
    
  end
end