Fixes #159.
Unified · Split
| @@ -77,7 +77,7 @@ app.templates.aboutPage = -> """ · 76 unmodified lines | |||
| 77 | 77 | ||
| 78 | credits = [ | 78 | credits = [ |
| 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 | ], [ |
| @@ -36,7 +36,7 @@ module Docs · 35 unmodified lines | |||
| 36 | node.before(node.children).remove | 36 | node.before(node.children).remove |
| 37 | end | 37 | 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') |
| @@ -37,6 +37,10 @@ module Docs · 36 unmodified lines | |||
| 37 | 37 | ||
| 38 | entries | 38 | entries |
| 39 | end | 39 | end |
| 40 | |||
| 41 | def include_default_entry? | ||
| 42 | !at_css('h1 + .definition-table:last-child') | ||
| 43 | end | ||
| 40 | end | 44 | end |
| 41 | end | 45 | end |
| 42 | end | 46 | end |
| @@ -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 | end | 20 | 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] = <<-HTML | 24 | options[:attribution] = <<-HTML |
| 26 | © 2010–2014 Google, Inc.<br> | 25 | © 2010–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 | HTML | 27 | HTML |
| 29 | 28 | ||