| @@ -11,7 +11,7 @@ module Docs · 10 unmodified lines |
| 11 | options[:max_image_size] = 256_000 | 11 | options[:max_image_size] = 256_000 |
| 12 | | 12 | |
| 13 | options[:attribution] = <<-HTML | 13 | options[:attribution] = <<-HTML |
| 14 | © 2010–2019 Google, Inc.<br> | 14 | © 2010–2020 Google, Inc.<br> |
| 15 | Licensed under the Creative Commons Attribution License 4.0. | 15 | Licensed under the Creative Commons Attribution License 4.0. |
| 16 | HTML | 16 | HTML |
| 17 | | 17 | |
| @@ -59,8 +59,28 @@ module Docs · 41 unmodified lines |
| 59 | end | 59 | end |
| 60 | | 60 | |
| 61 | version do | 61 | version do |
| | 62 | self.release = '9.1.12' |
| | 63 | self.base_url = 'https://v9.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 '8' do |
| 62 | self.release = '8.2.14' | 82 | self.release = '8.2.14' |
| 63 | self.base_url = 'https://angular.io/' | 83 | self.base_url = 'https://v8.angular.io/' |
| 64 | self.root_path = 'docs' | 84 | self.root_path = 'docs' |
| 65 | | 85 | |
| 66 | html_filters.push 'angular/clean_html', 'angular/entries' | 86 | html_filters.push 'angular/clean_html', 'angular/entries' |