浏览代码

Update Vitest documentation (1.2.2)

Simon Legner 1 年之前
父节点
当前提交
1904c1ba14
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 2 0
      lib/docs/filters/vitest/entries.rb
  2. 2 1
      lib/docs/scrapers/vitest.rb

+ 2 - 0
lib/docs/filters/vitest/entries.rb

@@ -4,12 +4,14 @@ module Docs
       def get_name
       def get_name
         name = at_css('h1').content
         name = at_css('h1').content
         name.sub! %r{\s*#\s*}, ''
         name.sub! %r{\s*#\s*}, ''
+        name.sub! %r{\s*\u200B\s*}, ''
         name
         name
       end
       end
 
 
       def get_type
       def get_type
         name = at_css('h1').content
         name = at_css('h1').content
         name.sub! %r{\s*#\s*}, ''
         name.sub! %r{\s*#\s*}, ''
+        name.sub! %r{\s*\u200B\s*}, ''
         name
         name
       end
       end
 
 

+ 2 - 1
lib/docs/scrapers/vitest.rb

@@ -9,6 +9,7 @@ module Docs
     }
     }
 
 
     options[:root_title] = 'Vitest'
     options[:root_title] = 'Vitest'
+    options[:download_images] = false
 
 
     options[:attribution] = <<-HTML
     options[:attribution] = <<-HTML
       &copy; 2021-Present Anthony Fu<br>
       &copy; 2021-Present Anthony Fu<br>
@@ -16,7 +17,7 @@ module Docs
       Licensed under the MIT License.
       Licensed under the MIT License.
     HTML
     HTML
 
 
-    self.release = '1.1.3'
+    self.release = '1.2.2'
     self.base_url = 'https://vitest.dev/'
     self.base_url = 'https://vitest.dev/'
     self.initial_paths = %w(guide/)
     self.initial_paths = %w(guide/)
     html_filters.push 'vitest/entries', 'vite/clean_html'
     html_filters.push 'vitest/entries', 'vite/clean_html'