Remove clutter and order by types

pull/416/head
Matthias Guenther 9 years ago
parent 79b5c06e1e
commit 936d2cc008
No known key found for this signature in database
GPG Key ID: 5287E11BD64C14E5

@ -2,16 +2,7 @@ module Docs
class Padrino
class CleanHtmlFilter < Filter
def call
title = at_css('#filecontents h1')
@doc = at_css('#content')
css('.highlight').each do |node|
node.name = 'pre'
node['data-lang'] = node.at_css('[data-lang]')['data-lang']
node.content = node.content
end
doc
at_css('#content')
end
end
end

@ -2,15 +2,13 @@ module Docs
class Padrino
class EntriesFilter < Docs::EntriesFilter
def get_name
node = at_css('h1')
result = node.content.strip
result << ' event' if type == 'Events'
result << '()' if node['class'].try(:include?, 'function')
result
at_css('h1, h2').content
end
def get_type
return 'Ruby'
type = name.dup
type.remove! %r{#.+\z}
type.split('::')[0..2].join('::')
end
end
end

@ -4,6 +4,7 @@ module Docs
self.slug = 'padrino'
self.type = 'ruby'
self.version = 'master'
self.release = '0.13.2'
self.base_url = 'http://www.rubydoc.info/github/padrino/padrino-framework'
self.links = {
home: 'http://padrinorb.com/',

Loading…
Cancel
Save