Skip to content

Commit

Permalink
expose in API
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Nov 14, 2023
1 parent 52c6057 commit ce6c975
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _plugins/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@ def generate(site)
page2.data['layout'] = nil
site.pages << page2

# Tool Categories
page2 = PageWithoutAFile.new(site, '', 'api/', 'toolcats.json')
page2.content = JSON.generate(site.data['toolcats'])
page2.data['layout'] = nil
site.pages << page2

# Tool Categories
page2 = PageWithoutAFile.new(site, '', 'api/', 'toolshed-revisions.json')
page2.content = JSON.generate(site.data['toolshed-revisions'])
page2.data['layout'] = nil
site.pages << page2

# Contributors
puts '[GTN/API] Contributors, Funders, Organisations'
%w[contributors funders organisations].each do |type|
Expand Down

0 comments on commit ce6c975

Please sign in to comment.