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
82"""82"""
83 83
84credits = [84credits = [
85 [ 'Angular<br>Angular.js',85 [ 'Angular.js',
86 '2010-2020 Google, Inc.',86 '2010-2020 Google, Inc.',
87 'CC BY 3.0',87 'CC BY 3.0',
88 'https://creativecommons.org/licenses/by/3.0/'88 '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/'
89 ], [94 ], [
90 'Ansible',95 'Ansible',
91 '2012-2018 Michael DeHaan<br>&copy; 2018–2019 Red Hat, Inc.',96 '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
11 options[:max_image_size] = 256_00011 options[:max_image_size] = 256_000
12 12
13 options[:attribution] = <<-HTML13 options[:attribution] = <<-HTML
14 &copy; 2010&ndash;2019 Google, Inc.<br>14 &copy; 2010&ndash;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 HTML16 HTML
17 17
@@ -59,7 +59,7 @@ module Docs · 41 unmodified lines
59 end59 end
60 60
61 version do61 version do
62 self.release = '8.2.14'62 self.release = '11.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,66 @@ module Docs · 12 unmodified lines
78 include Docs::Angular::Common78 include Docs::Angular::Common
79 end79 end
80 80
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
81 version '7' do141 version '7' do
82 self.release = '7.2.15'142 self.release = '7.2.15'
83 self.base_url = 'https://v7.angular.io/'143 self.base_url = 'https://v7.angular.io/'