Просмотр исходного кода

Update Angular documentation (17.0.8)

Simon Legner 1 год назад
Родитель
Сommit
9bf2311ece
2 измененных файлов с 13 добавлено и 2 удалено
  1. 5 0
      lib/docs/filters/angular/clean_html.rb
  2. 8 2
      lib/docs/scrapers/angular.rb

+ 5 - 0
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

+ 8 - 2
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