Update Angular documentation to include 7 and 8
Unified · Split
| @@ -83,7 +83,7 @@ app.templates.aboutPage = -> """ · 82 unmodified lines | ||
| 83 | 83 | |
| 84 | 84 | credits = [ |
| 85 | 85 | [ 'Angular<br>Angular.js', |
| 86 | − '2010-2018 Google, Inc.', | |
| 86 | + '2010-2019 Google, Inc.', | |
| 87 | 87 | 'CC BY', |
| 88 | 88 | 'https://creativecommons.org/licenses/by/4.0/' |
| 89 | 89 | ], [ |
| @@ -11,7 +11,7 @@ module Docs · 10 unmodified lines | ||
| 11 | 11 | options[:max_image_size] = 256_000 |
| 12 | 12 | |
| 13 | 13 | options[:attribution] = <<-HTML |
| 14 | − © 2010–2018 Google, Inc.<br> | |
| 14 | + © 2010–2019 Google, Inc.<br> | |
| 15 | 15 | Licensed under the Creative Commons Attribution License 4.0. |
| 16 | 16 | HTML |
| 17 | 17 | |
| @@ -59,6 +59,46 @@ module Docs · 41 unmodified lines | ||
| 59 | 59 | end |
| 60 | 60 | |
| 61 | 61 | version do |
| 62 | + self.release = '8.2.12' | |
| 63 | + self.base_url = 'https://v7.angular.io/' | |
| 64 | + self.root_path = 'docs' | |
| 65 | + | |
| 66 | + html_filters.push 'angular/clean_html', 'angular/entries' | |
| 67 | + | |
| 68 | + options[:follow_links] = false | |
| 69 | + options[:only_patterns] = [/\Aguide/, /\Atutorial/, /\Aapi/] | |
| 70 | + options[:fix_urls_before_parse] = ->(url) do | |
| 71 | + url.sub! %r{\Aguide/}, '/guide/' | |
| 72 | + url.sub! %r{\Atutorial/}, '/tutorial/' | |
| 73 | + url.sub! %r{\Aapi/}, '/api/' | |
| 74 | + url.sub! %r{\Agenerated/}, '/generated/' | |
| 75 | + url | |
| 76 | + end | |
| 77 | + | |
| 78 | + include Docs::Angular::Common | |
| 79 | + end | |
| 80 | + | |
| 81 | + version '7' do | |
| 82 | + self.release = '7.2.15' | |
| 83 | + self.base_url = 'https://v7.angular.io/' | |
| 84 | + self.root_path = 'docs' | |
| 85 | + | |
| 86 | + html_filters.push 'angular/clean_html', 'angular/entries' | |
| 87 | + | |
| 88 | + options[:follow_links] = false | |
| 89 | + options[:only_patterns] = [/\Aguide/, /\Atutorial/, /\Aapi/] | |
| 90 | + options[:fix_urls_before_parse] = ->(url) do | |
| 91 | + url.sub! %r{\Aguide/}, '/guide/' | |
| 92 | + url.sub! %r{\Atutorial/}, '/tutorial/' | |
| 93 | + url.sub! %r{\Aapi/}, '/api/' | |
| 94 | + url.sub! %r{\Agenerated/}, '/generated/' | |
| 95 | + url | |
| 96 | + end | |
| 97 | + | |
| 98 | + include Docs::Angular::Common | |
| 99 | + end | |
| 100 | + | |
| 101 | + version '6' do | |
| 62 | 102 | self.release = '6.0.4' |
| 63 | 103 | self.base_url = 'https://angular.io/' |
| 64 | 104 | self.root_path = 'docs' |
Binary file not shown.
Binary file not shown.