Fixes #159.
Unified · Split
| @@ -77,7 +77,7 @@ app.templates.aboutPage = -> """ · 76 unmodified lines | ||
| 77 | 77 | |
| 78 | 78 | credits = [ |
| 79 | 79 | [ 'Angular.js', |
| 80 | − '2010-2014 Google, Inc.', | |
| 80 | + '2010-2015 Google, Inc.', | |
| 81 | 81 | 'CC BY', |
| 82 | 82 | 'http://creativecommons.org/licenses/by/3.0/' |
| 83 | 83 | ], [ |
| @@ -36,7 +36,7 @@ module Docs · 35 unmodified lines | ||
| 36 | 36 | node.before(node.children).remove |
| 37 | 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 | 41 | # Remove root-level <div> |
| 42 | 42 | while div = at_css('h1 + div') |
| @@ -37,6 +37,10 @@ module Docs · 36 unmodified lines | ||
| 37 | 37 | |
| 38 | 38 | entries |
| 39 | 39 | end |
| 40 | + | |
| 41 | + def include_default_entry? | |
| 42 | + !at_css('h1 + .definition-table:last-child') | |
| 43 | + end | |
| 40 | 44 | end |
| 41 | 45 | end |
| 42 | 46 | end |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'Angular.js' |
| 4 | 4 | self.slug = 'angular' |
| 5 | 5 | self.type = 'angular' |
| 6 | − self.version = '1.3.8' | |
| 6 | + self.version = '1.3.14' | |
| 7 | 7 | self.base_url = "https://code.angularjs.org/#{version}/docs/partials/api/" |
| 8 | 8 | |
| 9 | 9 | html_filters.push 'angular/clean_html', 'angular/entries', 'title' |
| @@ -20,10 +20,9 @@ module Docs · 10 unmodified lines | ||
| 20 | 20 | end |
| 21 | 21 | |
| 22 | 22 | options[:skip] = %w(ng.html) |
| 23 | − options[:skip_patterns] = [/\/(function|directive|object|type|provider|service|filter)\.html\z/] | |
| 24 | 23 | |
| 25 | 24 | options[:attribution] = <<-HTML |
| 26 | − © 2010–2014 Google, Inc.<br> | |
| 25 | + © 2010–2015 Google, Inc.<br> | |
| 27 | 26 | Licensed under the Creative Commons Attribution License 3.0. |
| 28 | 27 | HTML |
| 29 | 28 | |