Update Bower documentation (1.5.3)

pull/281/head
Thibaut 10 years ago
parent d79492ac58
commit 56991211e8

@ -2,5 +2,5 @@
class app.views.BowerPage extends app.views.BasePage class app.views.BowerPage extends app.views.BasePage
afterRender: -> afterRender: ->
@highlightCode @findAll('pre[data-lang="js"], pre[data-lang="json"]'), 'javascript' @highlightCode @findAll('pre[data-lang="js"], pre[data-lang="javascript"], pre[data-lang="json"]'), 'javascript'
return return

@ -2,7 +2,7 @@ module Docs
class Bower class Bower
class CleanHtmlFilter < Filter class CleanHtmlFilter < Filter
def call def call
title = at_css('.page-title') title = at_css('.page-title, .main h1')
@doc = at_css('.main') @doc = at_css('.main')
doc.child.before(title) doc.child.before(title)

@ -2,8 +2,7 @@ module Docs
class Bower class Bower
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
ENTRIES_TYPE_BY_SLUG = { ENTRIES_TYPE_BY_SLUG = {
'api' => 'Commands', 'api' => 'Commands'
'config' => '.bowerrc'
} }
def get_name def get_name
@ -17,7 +16,7 @@ module Docs
def additional_entries def additional_entries
return [] unless type = ENTRIES_TYPE_BY_SLUG[slug] return [] unless type = ENTRIES_TYPE_BY_SLUG[slug]
css('#bowerrc-specification + ul a', '#commands + p + ul a').map do |node| css('#commands + p + ul a').map do |node|
[node.content, node['href'].remove('#'), type] [node.content, node['href'].remove('#'), type]
end end
end end

@ -2,7 +2,7 @@ module Docs
class Bower < UrlScraper class Bower < UrlScraper
self.name = 'Bower' self.name = 'Bower'
self.type = 'bower' self.type = 'bower'
self.version = '1.4.1' self.version = '1.5.3'
self.base_url = 'http://bower.io/docs/' self.base_url = 'http://bower.io/docs/'
self.root_path = 'api' self.root_path = 'api'
self.links = { self.links = {

Loading…
Cancel
Save