[devdocsgjs/main: 38/76] Update Angular documentation (14.0.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 38/76] Update Angular documentation (14.0.0)
- Date: Fri, 15 Jul 2022 21:39:46 +0000 (UTC)
commit 61cf2ab65d78785c73ab556860c4a9c5ba443b33
Author: Simon Legner <Simon Legner gmail com>
Date: Thu Jun 2 22:34:08 2022 +0200
Update Angular documentation (14.0.0)
lib/docs/scrapers/angular.rb | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/scrapers/angular.rb b/lib/docs/scrapers/angular.rb
index d706bb66..daf01c6b 100644
--- a/lib/docs/scrapers/angular.rb
+++ b/lib/docs/scrapers/angular.rb
@@ -69,7 +69,7 @@ module Docs
end
version do
- self.release = '13.3.8'
+ self.release = '14.0.0'
self.base_url = 'https://angular.io/'
self.root_path = 'docs'
@@ -88,6 +88,26 @@ module Docs
include Docs::Angular::Since12
end
+ version '13' do
+ self.release = '13.3.8'
+ self.base_url = 'https://v13.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::Since12
+ end
+
version '12' do
self.release = '12.2.13'
self.base_url = 'https://v12.angular.io/'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]