Class: TeamApi::Generator

Inherits:
Jekyll::Generator
  • Object
show all
Defined in:
lib/team_api/generator.rb

Overview

Processes site data, generates authorization artifacts, publishes an API, and generates cross-linked Hub pages.

Instance Method Summary collapse

Instance Method Details

#generate(site) ⇒ Object

Executes all of the data processing and artifact/page generation phases for the Hub.



19
20
21
22
23
24
25
26
# File 'lib/team_api/generator.rb', line 19

def generate(site)
  Joiner.join_data(site)
  Snippets.publish(site)
  CrossReferencer.build_xrefs(site)
  Canonicalizer.canonicalize_data(site.data)
  ::HashJoiner.prune_empty_properties(site.data)
  Api.generate_api(site)
end