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
83 83
84credits = [84credits = [
85 [ 'Angular<br>Angular.js',85 [ 'Angular<br>Angular.js',
86 '2010-2018 Google, Inc.',86 '2010-2019 Google, Inc.',
87 'CC BY',87 'CC BY',
88 'https://creativecommons.org/licenses/by/4.0/'88 'https://creativecommons.org/licenses/by/4.0/'
89 ], [89 ], [
lib/docs/scrapers/angular.rb+41−1
@@ -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;2018 Google, Inc.<br>14 &copy; 2010&ndash;2019 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,6 +59,46 @@ module Docs · 41 unmodified lines
59 end59 end
60 60
61 version do61 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
62 self.release = '6.0.4'102 self.release = '6.0.4'
63 self.base_url = 'https://angular.io/'103 self.base_url = 'https://angular.io/'
64 self.root_path = 'docs'104 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.