Unified · Split
| @@ -12,6 +12,8 @@ module Docs · 11 unmodified lines | |||
| 12 | 'Guide' | 12 | 'Guide' |
| 13 | elsif slug.start_with?('tutorial') | 13 | elsif slug.start_with?('tutorial') |
| 14 | 'Tutorial' | 14 | 'Tutorial' |
| 15 | elsif slug.start_with?('api/platform-browser-dynamic') | ||
| 16 | 'platform-browser-dynamic' | ||
| 15 | elsif node = at_css('th:contains("npm Package")') | 17 | elsif node = at_css('th:contains("npm Package")') |
| 16 | node.next_element.content.remove('@angular/') | 18 | node.next_element.content.remove('@angular/') |
| 17 | elsif at_css('.api-type-label.module') | 19 | elsif at_css('.api-type-label.module') |
| @@ -59,7 +59,7 @@ module Docs · 58 unmodified lines | |||
| 59 | end | 59 | end |
| 60 | 60 | ||
| 61 | version do | 61 | version do |
| 62 | self.release = '11.2.6' | 62 | self.release = '12.0.0' |
| 63 | self.base_url = 'https://angular.io/' | 63 | self.base_url = 'https://angular.io/' |
| 64 | self.root_path = 'docs' | 64 | self.root_path = 'docs' |
| 65 | 65 | ||
| @@ -78,6 +78,26 @@ module Docs · 12 unmodified lines | |||
| 78 | include Docs::Angular::Common | 78 | include Docs::Angular::Common |
| 79 | end | 79 | end |
| 80 | 80 | ||
| 81 | version '11' do | ||
| 82 | self.release = '11.2.14' | ||
| 83 | self.base_url = 'https://v11.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 | |||
| 81 | version '10' do | 101 | version '10' do |
| 82 | self.release = '10.2.3' | 102 | self.release = '10.2.3' |
| 83 | self.base_url = 'https://v10.angular.io/' | 103 | self.base_url = 'https://v10.angular.io/' |