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
7777
7878 credits = [
7979 [ 'Angular.js',
80− '2010-2014 Google, Inc.',
80+ '2010-2015 Google, Inc.',
8181 'CC BY',
8282 'http://creativecommons.org/licenses/by/3.0/'
8383 ], [
lib/docs/filters/angular/clean_html.rb+1−1
@@ -36,7 +36,7 @@ module Docs · 35 unmodified lines
3636 node.before(node.children).remove
3737 end
3838
39− at_css('h1').add_child(css('.view-source', '.improve-docs'))
39+ at_css('h1').prepend_child(css('.view-source', '.improve-docs'))
4040
4141 # Remove root-level <div>
4242 while div = at_css('h1 + div')
lib/docs/filters/angular/entries.rb+4−0
@@ -37,6 +37,10 @@ module Docs · 36 unmodified lines
3737
3838 entries
3939 end
40+
41+ def include_default_entry?
42+ !at_css('h1 + .definition-table:last-child')
43+ end
4044 end
4145 end
4246 end
lib/docs/scrapers/angular.rb+2−3
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
33 self.name = 'Angular.js'
44 self.slug = 'angular'
55 self.type = 'angular'
6− self.version = '1.3.8'
6+ self.version = '1.3.14'
77 self.base_url = "https://code.angularjs.org/#{version}/docs/partials/api/"
88
99 html_filters.push 'angular/clean_html', 'angular/entries', 'title'
@@ -20,10 +20,9 @@ module Docs · 10 unmodified lines
2020 end
2121
2222 options[:skip] = %w(ng.html)
23− options[:skip_patterns] = [/\/(function|directive|object|type|provider|service|filter)\.html\z/]
2423
2524 options[:attribution] = <<-HTML
26− &copy; 2010&ndash;2014 Google, Inc.<br>
25+ &copy; 2010&ndash;2015 Google, Inc.<br>
2726 Licensed under the Creative Commons Attribution License 3.0.
2827 HTML
2928