Update Angular documentation to include 7 and 8

pull/1118/head
Kayla Altepeter 5 years ago
parent 58c44bf332
commit f08cb87031

@ -83,7 +83,7 @@ app.templates.aboutPage = -> """
credits = [
[ 'Angular<br>Angular.js',
'2010-2018 Google, Inc.',
'2010-2019 Google, Inc.',
'CC BY',
'https://creativecommons.org/licenses/by/4.0/'
], [

@ -11,7 +11,7 @@ module Docs
options[:max_image_size] = 256_000
options[:attribution] = <<-HTML
&copy; 2010&ndash;2018 Google, Inc.<br>
&copy; 2010&ndash;2019 Google, Inc.<br>
Licensed under the Creative Commons Attribution License 4.0.
HTML
@ -59,6 +59,46 @@ module Docs
end
version do
self.release = '8.2.12'
self.base_url = 'https://v7.angular.io/'
self.root_path = 'docs'
html_filters.push 'angular/clean_html', 'angular/entries'
options[:follow_links] = false
options[:only_patterns] = [/\Aguide/, /\Atutorial/, /\Aapi/]
options[:fix_urls_before_parse] = ->(url) do
url.sub! %r{\Aguide/}, '/guide/'
url.sub! %r{\Atutorial/}, '/tutorial/'
url.sub! %r{\Aapi/}, '/api/'
url.sub! %r{\Agenerated/}, '/generated/'
url
end
include Docs::Angular::Common
end
version '7' do
self.release = '7.2.15'
self.base_url = 'https://v7.angular.io/'
self.root_path = 'docs'
html_filters.push 'angular/clean_html', 'angular/entries'
options[:follow_links] = false
options[:only_patterns] = [/\Aguide/, /\Atutorial/, /\Aapi/]
options[:fix_urls_before_parse] = ->(url) do
url.sub! %r{\Aguide/}, '/guide/'
url.sub! %r{\Atutorial/}, '/tutorial/'
url.sub! %r{\Aapi/}, '/api/'
url.sub! %r{\Agenerated/}, '/generated/'
url
end
include Docs::Angular::Common
end
version '6' do
self.release = '6.0.4'
self.base_url = 'https://angular.io/'
self.root_path = 'docs'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 727 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Loading…
Cancel
Save