[devdocsgjs/main: 1659/1867] Update Angular documentation (12.0.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1659/1867] Update Angular documentation (12.0.0)
- Date: Fri, 19 Nov 2021 23:48:13 +0000 (UTC)
commit b5635fa550c328299b557cb70fc5d2996f19dc06
Author: Simon Legner <Simon Legner gmail com>
Date: Thu May 13 13:19:55 2021 +0200
Update Angular documentation (12.0.0)
lib/docs/filters/angular/entries.rb | 2 ++
lib/docs/scrapers/angular.rb | 22 +++++++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/angular/entries.rb b/lib/docs/filters/angular/entries.rb
index da0a9d4b..ae03c582 100644
--- a/lib/docs/filters/angular/entries.rb
+++ b/lib/docs/filters/angular/entries.rb
@@ -12,6 +12,8 @@ module Docs
'Guide'
elsif slug.start_with?('tutorial')
'Tutorial'
+ elsif slug.start_with?('api/platform-browser-dynamic')
+ 'platform-browser-dynamic'
elsif node = at_css('th:contains("npm Package")')
node.next_element.content.remove('@angular/')
elsif at_css('.api-type-label.module')
diff --git a/lib/docs/scrapers/angular.rb b/lib/docs/scrapers/angular.rb
index 28c39ad4..3654bbad 100644
--- a/lib/docs/scrapers/angular.rb
+++ b/lib/docs/scrapers/angular.rb
@@ -59,7 +59,7 @@ module Docs
end
version do
- self.release = '11.2.6'
+ self.release = '12.0.0'
self.base_url = 'https://angular.io/'
self.root_path = 'docs'
@@ -78,6 +78,26 @@ module Docs
include Docs::Angular::Common
end
+ version '11' do
+ self.release = '11.2.14'
+ self.base_url = 'https://v11.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 '10' do
self.release = '10.2.3'
self.base_url = 'https://v10.angular.io/'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]