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



72
73
74
75
76
77
78
79
80
81
# File 'lib/jekyll-theme-open-project-helpers/project_data_reader.rb', line 72

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