From f08cb87031a3eab313ffc318822b7c8ab8ad4143 Mon Sep 17 00:00:00 2001 From: Kayla Altepeter Date: Mon, 28 Oct 2019 23:57:18 -0500 Subject: [PATCH] Update Angular documentation to include 7 and 8 --- .../templates/pages/about_tmpl.coffee | 2 +- lib/docs/scrapers/angular.rb | 42 +++++++++++++++++- public/icons/docs/angular/16.png | Bin 727 -> 1108 bytes public/icons/docs/angular/16@2x.png | Bin 1306 -> 2266 bytes 4 files changed, 42 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 0165ade2..fd3d9a7c 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -83,7 +83,7 @@ app.templates.aboutPage = -> """ credits = [ [ 'Angular
Angular.js', - '2010-2018 Google, Inc.', + '2010-2019 Google, Inc.', 'CC BY', 'https://creativecommons.org/licenses/by/4.0/' ], [ diff --git a/lib/docs/scrapers/angular.rb b/lib/docs/scrapers/angular.rb index 3365ec67..b5db97e9 100644 --- a/lib/docs/scrapers/angular.rb +++ b/lib/docs/scrapers/angular.rb @@ -11,7 +11,7 @@ module Docs options[:max_image_size] = 256_000 options[:attribution] = <<-HTML - © 2010–2018 Google, Inc.
+ © 2010–2019 Google, Inc.
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' diff --git a/public/icons/docs/angular/16.png b/public/icons/docs/angular/16.png index c2da47ddac62d6fc78411ddb0385be40bd474b3a..ace09120ce692ba589feaec994970f64ac361053 100644 GIT binary patch literal 1108 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0WW zg+Z8+Vb&Z8pn}NEkcg59UmvUF{9L`nl>DSry^7odplSvNn+hu+GdHy)QK2F?C$HG5 z!d3~a!V1U+3F|8Y3;nDA{o-C@9zzrKDK}xwt{K19`Se z86_nJR{Hwo<>h+i#(Mch>H3D2mX`VkM*2oZx=P7{9O-#x!EwNQn0$BtH5O0c3d|4@L;p!@;Rg)$-uxg#nZ(x#6mDP z*w-T@P~_jc--TBSr7nLGkKt8RJl7)}vP9Ks?PV^!;xJVoD& zTDQ_B&73eLE%V;neDhEJS=cYQsh zkH!3V_}jq1w072&0u{0Dl}&xGPv5y+Z*a!<*=tr4vlXF7r}uunnl1f6pmeLVm(Ax- zJZZ~57hbxj9^tZtudB3E^Np5vp#RTp*CxDv>C(mdVd3=~YuB*eH@3f|abEOl)zvxw z#O|wiFlM>%o(*&0Ptg&+nQS+4wzOgPv13k($6yS&6{>~(=@Sb zx%$0xT8=A~Oby>?aQe?h>l3M)8RpJvFLzwS^EB@0VaeRtYfpSjUCWkZQJugU8m-*nd5Ka^1^U z2X5sWc;ARFc3Y6tnD^T~((3xvPm}LFSLFL`oF8L?>7k_?Qx1Oh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