Class: Rop::ProjectReader

Inherits:
JekyllData::Reader
  • Object
show all
Defined in:
lib/rop/project_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



83
84
85
86
87
88
89
90
91
92
# File 'lib/rop/project_reader.rb', line 83

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