Skip to content

Commit

Permalink
more cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 23, 2024
1 parent 6cc5ef8 commit 02c66fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _plugins/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def generate(site)
path = File.join(site.dest, 'api', directory, 'slides.json')
p = material.dup
p.delete('ref')
p.delete('ref_tutorials')
p.delete('ref_slides')
p['contributors'] = Gtn::Contributors.get_contributors(p).dup.map { |c| mapContributor(site, c) }

Expand All @@ -398,6 +399,7 @@ def generate(site)
p = material.dup
p.delete('ref')
p.delete('ref_tutorials')
p.delete('ref_slides')
p['contributors'] = Gtn::Contributors.get_contributors(p).dup.map { |c| mapContributor(site, c) }
if !Dir.exist?(File.dirname(path))
FileUtils.mkdir_p(File.dirname(path))
Expand Down

0 comments on commit 02c66fe

Please sign in to comment.