History

Merge pull request #1118 from kaltepeter/update-ng

Update Angular documentation to include 7 and 8

Jed Fox committed 6 years ago

Commit 4e82f732 parents 3515bc7 f08cb874 files · +40 −0Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/scrapers/angular.rb +41 −1
  3. public/icons/docs/angular/16.png +0 −0
  4. public/icons/docs/angular/16@2x.png +0 −0
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -83,7 +83,7 @@ app.templates.aboutPage = -> """ · 82 unmodified lines
8383
8484 credits = [
8585 [ 'Angular<br>Angular.js',
86− '2010-2018 Google, Inc.',
86+ '2010-2019 Google, Inc.',
8787 'CC BY',
8888 'https://creativecommons.org/licenses/by/4.0/'
8989 ], [
lib/docs/scrapers/angular.rb+41−1
@@ -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;2018 Google, Inc.<br>
14+ &copy; 2010&ndash;2019 Google, Inc.<br>
1515 Licensed under the Creative Commons Attribution License 4.0.
1616 HTML
1717
@@ -59,6 +59,46 @@ module Docs · 41 unmodified lines
5959 end
6060
6161 version do
62+ self.release = '8.2.12'
63+ self.base_url = 'https://v7.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 '7' do
82+ self.release = '7.2.15'
83+ self.base_url = 'https://v7.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 '6' do
62102 self.release = '6.0.4'
63103 self.base_url = 'https://angular.io/'
64104 self.root_path = 'docs'
public/icons/docs/angular/16.png+0−0

Binary file not shown.

public/icons/docs/angular/16@2x.png+0−0

Binary file not shown.