From 02c66fe5e17ac3c6eaef32072de54bd707ba35c9 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Sun, 23 Jun 2024 17:09:11 +0200 Subject: [PATCH] more cleaning --- _plugins/api.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_plugins/api.rb b/_plugins/api.rb index 74f471189378a0..4d8d8502cdfe65 100644 --- a/_plugins/api.rb +++ b/_plugins/api.rb @@ -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) } @@ -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))