From ba6d80b27fd8f4d6a71171bad1a38c156f50b668 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 30 Jul 2017 08:46:29 -0400 Subject: [PATCH] Update Angular.js documentation (1.6.5) --- lib/docs/filters/angularjs/clean_html.rb | 4 ++++ lib/docs/scrapers/angularjs.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/angularjs/clean_html.rb b/lib/docs/filters/angularjs/clean_html.rb index 169417d2..af7bebc3 100644 --- a/lib/docs/filters/angularjs/clean_html.rb +++ b/lib/docs/filters/angularjs/clean_html.rb @@ -11,6 +11,10 @@ module Docs end end + css('img[src]').each do |node| + node['src'] = node['src'].gsub(%r{angularjs\.org/([\d\.]+)/docs/partials/(\w+)/}, 'angularjs.org/\1/docs/\2/') + end + doc end diff --git a/lib/docs/scrapers/angularjs.rb b/lib/docs/scrapers/angularjs.rb index 0f577b7c..f103005a 100644 --- a/lib/docs/scrapers/angularjs.rb +++ b/lib/docs/scrapers/angularjs.rb @@ -46,7 +46,7 @@ module Docs end version '1.6' do - self.release = '1.6.4' + self.release = '1.6.5' self.base_url = "https://code.angularjs.org/#{release}/docs/partials/" end