소스 검색

Update RxJS documentation (7.5.5)

Simon Legner 3 년 전
부모
커밋
b687444315
3개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 3 2
      lib/docs/filters/rxjs/entries.rb
  3. 2 2
      lib/docs/scrapers/rxjs.rb

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -794,7 +794,7 @@ credits = [
     'https://raw.githubusercontent.com/rust-lang/book/master/LICENSE-MIT'
   ], [
     'RxJS',
-    '2015-2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors',
+    '2015-2022 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors',
     'Apache',
     'https://raw.githubusercontent.com/ReactiveX/rxjs/master/LICENSE.txt'
   ], [

+ 3 - 2
lib/docs/filters/rxjs/entries.rb

@@ -20,8 +20,9 @@ module Docs
       end
 
       def additional_entries
-        css('h3[id]').map do |node|
-          ["#{name}.#{node['name']}()", node['id']]
+        css('h3[id]').flat_map do |node|
+          return [] unless node['name']
+          [["#{name}.#{node['name']}()", node['id']]]
         end
       end
     end

+ 2 - 2
lib/docs/scrapers/rxjs.rb

@@ -4,7 +4,7 @@ module Docs
   class Rxjs < UrlScraper
     self.name = 'RxJS'
     self.type = 'rxjs'
-    self.release = '7.1.0'
+    self.release = '7.5.5'
     self.base_url = 'https://rxjs.dev/'
     self.root_path = 'guide/overview'
     self.links = {
@@ -27,7 +27,7 @@ module Docs
     options[:max_image_size] = 256_000
 
     options[:attribution] = <<-HTML
-      &copy; 2015&ndash;2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.<br>
+      &copy; 2015&ndash;2022 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.<br>
       Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
     HTML