History

Merge pull request #1175 from simon04/angular-9

Simon Legner committed 5 years ago

Commit 0f8a4462 parents ff5ffaf 539e7b92 files · +68 −3Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +6 −1
  2. lib/docs/scrapers/angular.rb +62 −2
assets/javascripts/templates/pages/about_tmpl.coffee+6−1
@@ -82,10 +82,15 @@ app.templates.aboutPage = -> """ · 81 unmodified lines
8282 """
8383
8484 credits = [
85− [ 'Angular<br>Angular.js',
85+ [ 'Angular.js',
8686 '2010-2020 Google, Inc.',
8787 'CC BY 3.0',
8888 'https://creativecommons.org/licenses/by/3.0/'
89+ ], [
90+ 'Angular',
91+ '2010-2020 Google, Inc.',
92+ 'CC BY',
93+ 'https://creativecommons.org/licenses/by/4.0/'
8994 ], [
9095 'Ansible',
9196 '2012-2018 Michael DeHaan<br>&copy; 2018–2019 Red Hat, Inc.',
lib/docs/scrapers/angular.rb+62−2
@@ -11,7 +11,7 @@ module Docs · 10 unmodified lines
1111 options[:max_image_size] = 256_000
1212
1313 options[:attribution] = <<-HTML
14− &copy; 2010&ndash;2019 Google, Inc.<br>
14+ &copy; 2010&ndash;2020 Google, Inc.<br>
1515 Licensed under the Creative Commons Attribution License 4.0.
1616 HTML
1717
@@ -59,7 +59,7 @@ module Docs · 41 unmodified lines
5959 end
6060
6161 version do
62− self.release = '8.2.14'
62+ self.release = '11.0.0'
6363 self.base_url = 'https://angular.io/'
6464 self.root_path = 'docs'
6565
@@ -78,6 +78,66 @@ module Docs · 12 unmodified lines
7878 include Docs::Angular::Common
7979 end
8080
81+ version '10' do
82+ self.release = '10.2.3'
83+ self.base_url = 'https://v10.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 '9' do
102+ self.release = '9.1.12'
103+ self.base_url = 'https://v9.angular.io/'
104+ self.root_path = 'docs'
105+
106+ html_filters.push 'angular/clean_html', 'angular/entries'
107+
108+ options[:follow_links] = false
109+ options[:only_patterns] = [/\Aguide/, /\Atutorial/, /\Aapi/]
110+ options[:fix_urls_before_parse] = ->(url) do
111+ url.sub! %r{\Aguide/}, '/guide/'
112+ url.sub! %r{\Atutorial/}, '/tutorial/'
113+ url.sub! %r{\Aapi/}, '/api/'
114+ url.sub! %r{\Agenerated/}, '/generated/'
115+ url
116+ end
117+
118+ include Docs::Angular::Common
119+ end
120+
121+ version '8' do
122+ self.release = '8.2.14'
123+ self.base_url = 'https://v8.angular.io/'
124+ self.root_path = 'docs'
125+
126+ html_filters.push 'angular/clean_html', 'angular/entries'
127+
128+ options[:follow_links] = false
129+ options[:only_patterns] = [/\Aguide/, /\Atutorial/, /\Aapi/]
130+ options[:fix_urls_before_parse] = ->(url) do
131+ url.sub! %r{\Aguide/}, '/guide/'
132+ url.sub! %r{\Atutorial/}, '/tutorial/'
133+ url.sub! %r{\Aapi/}, '/api/'
134+ url.sub! %r{\Agenerated/}, '/generated/'
135+ url
136+ end
137+
138+ include Docs::Angular::Common
139+ end
140+
81141 version '7' do
82142 self.release = '7.2.15'
83143 self.base_url = 'https://v7.angular.io/'