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
2 2
3class app.views.BowerPage extends app.views.BasePage3class app.views.BowerPage extends app.views.BasePage
4 afterRender: ->4 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'
6 return6 return
lib/docs/filters/bower/clean_html.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
2 class Bower2 class Bower
3 class CleanHtmlFilter < Filter3 class CleanHtmlFilter < Filter
4 def call4 def call
5 title = at_css('.page-title')5 title = at_css('.page-title, .main h1')
6 @doc = at_css('.main')6 @doc = at_css('.main')
7 doc.child.before(title)7 doc.child.before(title)
8 8
lib/docs/filters/bower/entries.rb+2−3
@@ -2,8 +2,7 @@ module Docs · 1 unmodified line
2 class Bower2 class Bower
3 class EntriesFilter < Docs::EntriesFilter3 class EntriesFilter < Docs::EntriesFilter
4 ENTRIES_TYPE_BY_SLUG = {4 ENTRIES_TYPE_BY_SLUG = {
5 'api' => 'Commands',5 'api' => 'Commands'
6 'config' => '.bowerrc'
7 }6 }
8 7
9 def get_name8 def get_name
@@ -17,7 +16,7 @@ module Docs · 7 unmodified lines
17 def additional_entries16 def additional_entries
18 return [] unless type = ENTRIES_TYPE_BY_SLUG[slug]17 return [] unless type = ENTRIES_TYPE_BY_SLUG[slug]
19 18
20 css('#bowerrc-specification + ul a', '#commands + p + ul a').map do |node|19 css('#commands + p + ul a').map do |node|
21 [node.content, node['href'].remove('#'), type]20 [node.content, node['href'].remove('#'), type]
22 end21 end
23 end22 end
lib/docs/scrapers/bower.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
2 class Bower < UrlScraper2 class Bower < UrlScraper
3 self.name = 'Bower'3 self.name = 'Bower'
4 self.type = 'bower'4 self.type = 'bower'
5 self.version = '1.4.1'5 self.version = '1.5.3'
6 self.base_url = 'http://bower.io/docs/'6 self.base_url = 'http://bower.io/docs/'
7 self.root_path = 'api'7 self.root_path = 'api'
8 self.links = {8 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