History

Update Bower documentation (1.5.3)

Thibaut committed 11 years ago

Commit 56991211 parent d79492a4 files · +5 −6Browse files

Unified · Split

4 files
  1. assets/javascripts/views/pages/bower.coffee +1 −1
  2. lib/docs/filters/bower/clean_html.rb +1 −1
  3. lib/docs/filters/bower/entries.rb +2 −3
  4. lib/docs/scrapers/bower.rb +1 −1
assets/javascripts/views/pages/bower.coffee+1−1
@@ -2,5 +2,5 @@ · 1 unmodified line
22
33 class app.views.BowerPage extends app.views.BasePage
44 afterRender: ->
5− @highlightCode @findAll('pre[data-lang="js"], pre[data-lang="json"]'), 'javascript'
5+ @highlightCode @findAll('pre[data-lang="js"], pre[data-lang="javascript"], pre[data-lang="json"]'), 'javascript'
66 return
lib/docs/filters/bower/clean_html.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Bower
33 class CleanHtmlFilter < Filter
44 def call
5− title = at_css('.page-title')
5+ title = at_css('.page-title, .main h1')
66 @doc = at_css('.main')
77 doc.child.before(title)
88
lib/docs/filters/bower/entries.rb+2−3
@@ -2,8 +2,7 @@ module Docs · 1 unmodified line
22 class Bower
33 class EntriesFilter < Docs::EntriesFilter
44 ENTRIES_TYPE_BY_SLUG = {
5− 'api' => 'Commands',
6− 'config' => '.bowerrc'
5+ 'api' => 'Commands'
76 }
87
98 def get_name
@@ -17,7 +16,7 @@ module Docs · 7 unmodified lines
1716 def additional_entries
1817 return [] unless type = ENTRIES_TYPE_BY_SLUG[slug]
1918
20− css('#bowerrc-specification + ul a', '#commands + p + ul a').map do |node|
19+ css('#commands + p + ul a').map do |node|
2120 [node.content, node['href'].remove('#'), type]
2221 end
2322 end
lib/docs/scrapers/bower.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Bower < UrlScraper
33 self.name = 'Bower'
44 self.type = 'bower'
5− self.version = '1.4.1'
5+ self.version = '1.5.3'
66 self.base_url = 'http://bower.io/docs/'
77 self.root_path = 'api'
88 self.links = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t