diff --git a/_plugins/remove_inheritance_generator.rb b/_plugins/remove_inheritance_generator.rb index 8bc4fd3..0b0f731 100644 --- a/_plugins/remove_inheritance_generator.rb +++ b/_plugins/remove_inheritance_generator.rb @@ -1,12 +1,13 @@ module Reading class RemoveInheritanceGenerator < Jekyll::Generator - def generate(site) - @site = site - site.pages.each do |p| - if p.data["description"] == "Client-side API Reference" - p.content.sub!(/(^#[^:]*).*/, '\1') - end - end + def generate(site) + if site.platform == "aspnet-ajax" + site.pages.each do |p| + if p.data["description"] == "Client-side API Reference" + p.content.sub!(/(^#[^:]*).*/, '\1') + end + end + end end end end