зеркало из https://github.com/telerik/docs-seed.git
chore: Plugin scoped to ajax-docs only
This commit is contained in:
Родитель
c970ca68a3
Коммит
81b717cf49
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче