Skip to content

Commit

Permalink
Merge pull request #5070 from galaxyproject/feedback2-json-api
Browse files Browse the repository at this point in the history
Expose feedback2 as JSON in API
  • Loading branch information
hexylena authored Jun 24, 2024
2 parents ab2ad14 + b488a33 commit a8a95f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _plugins/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ def generate(site)
page2.data['layout'] = nil
site.pages << page2

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

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

0 comments on commit a8a95f8

Please sign in to comment.