History

Update Angular.js documentation (1.3.14)

Fixes #159.

Thibaut committed 11 years ago

Commit 852ce621 parent dfdd4f34 files · +8 −5Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/angular/clean_html.rb +1 −1
  3. lib/docs/filters/angular/entries.rb +4 −0
  4. lib/docs/scrapers/angular.rb +2 −3
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -77,7 +77,7 @@ app.templates.aboutPage = -> """ · 76 unmodified lines
77 77
78credits = [78credits = [
79 [ 'Angular.js',79 [ 'Angular.js',
80 '2010-2014 Google, Inc.',80 '2010-2015 Google, Inc.',
81 'CC BY',81 'CC BY',
82 'http://creativecommons.org/licenses/by/3.0/'82 'http://creativecommons.org/licenses/by/3.0/'
83 ], [83 ], [
lib/docs/filters/angular/clean_html.rb+1−1
@@ -36,7 +36,7 @@ module Docs · 35 unmodified lines
36 node.before(node.children).remove36 node.before(node.children).remove
37 end37 end
38 38
39 at_css('h1').add_child(css('.view-source', '.improve-docs'))39 at_css('h1').prepend_child(css('.view-source', '.improve-docs'))
40 40
41 # Remove root-level <div>41 # Remove root-level <div>
42 while div = at_css('h1 + div')42 while div = at_css('h1 + div')
lib/docs/filters/angular/entries.rb+4−0
@@ -37,6 +37,10 @@ module Docs · 36 unmodified lines
37 37
38 entries38 entries
39 end39 end
40
41 def include_default_entry?
42 !at_css('h1 + .definition-table:last-child')
43 end
40 end44 end
41 end45 end
42end46end
lib/docs/scrapers/angular.rb+2−3
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
3 self.name = 'Angular.js'3 self.name = 'Angular.js'
4 self.slug = 'angular'4 self.slug = 'angular'
5 self.type = 'angular'5 self.type = 'angular'
6 self.version = '1.3.8'6 self.version = '1.3.14'
7 self.base_url = "https://code.angularjs.org/#{version}/docs/partials/api/"7 self.base_url = "https://code.angularjs.org/#{version}/docs/partials/api/"
8 8
9 html_filters.push 'angular/clean_html', 'angular/entries', 'title'9 html_filters.push 'angular/clean_html', 'angular/entries', 'title'
@@ -20,10 +20,9 @@ module Docs · 10 unmodified lines
20 end20 end
21 21
22 options[:skip] = %w(ng.html)22 options[:skip] = %w(ng.html)
23 options[:skip_patterns] = [/\/(function|directive|object|type|provider|service|filter)\.html\z/]
24 23
25 options[:attribution] = <<-HTML24 options[:attribution] = <<-HTML
26 &copy; 2010&ndash;2014 Google, Inc.<br>25 &copy; 2010&ndash;2015 Google, Inc.<br>
27 Licensed under the Creative Commons Attribution License 3.0.26 Licensed under the Creative Commons Attribution License 3.0.
28 HTML27 HTML
29 28