From 9bf2311eced479ea1d0b8e3d4ff6dfe17a445ebe Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 6 Jan 2024 10:16:37 +0100 Subject: [PATCH] Update Angular documentation (17.0.8) --- lib/docs/filters/angular/clean_html.rb | 5 +++++ lib/docs/scrapers/angular.rb | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/angular/clean_html.rb b/lib/docs/filters/angular/clean_html.rb index 75112710..562b6d25 100644 --- a/lib/docs/filters/angular/clean_html.rb +++ b/lib/docs/filters/angular/clean_html.rb @@ -94,6 +94,11 @@ module Docs node.before(node.children).remove end + css('details.overloads > summary').each do |node| + node.css('.actions').remove + node.content = node.content + end + doc end end diff --git a/lib/docs/scrapers/angular.rb b/lib/docs/scrapers/angular.rb index 0a85b9c8..dcbdd0ea 100644 --- a/lib/docs/scrapers/angular.rb +++ b/lib/docs/scrapers/angular.rb @@ -83,14 +83,20 @@ module Docs end version do - self.release = '16.1.3' + self.release = '17.0.8' self.base_url = 'https://angular.io/' include Docs::Angular::Since12 end + version '16' do + self.release = '16.2.12' + self.base_url = 'https://v16.angular.io/' + include Docs::Angular::Since12 + end + version '15' do self.release = '15.2.9' - self.base_url = 'https://angular.io/' + self.base_url = 'https://v15.angular.io/' include Docs::Angular::Since12 end