History

Update Vitest documentation (4.0.17)

Simon Legner committed 8 months ago

Commit 9be38471 parent 04d8d055 files · +10 −3Browse files

Unified · Split

5 files
  1. lib/docs/filters/vite/clean_html.rb +2 −0
  2. lib/docs/scrapers/vitest.rb +9 −5
  3. public/icons/docs/vitest/16.png +0 −0
  4. public/icons/docs/vitest/16@2x.png +0 −0
  5. public/icons/docs/vitest/SOURCE +1 −0
lib/docs/filters/vite/clean_html.rb+2−0
@@ -24,6 +24,8 @@ module Docs · 23 unmodified lines
24 node.remove24 node.remove
25 end25 end
26 26
27 css('.vp-code-group > .tabs').remove
28
27 css('.lang').remove29 css('.lang').remove
28 css('.line-numbers-wrapper').remove30 css('.line-numbers-wrapper').remove
29 css('pre').each do |node|31 css('pre').each do |node|
lib/docs/scrapers/vitest.rb+9−5
@@ -13,19 +13,23 @@ module Docs · 12 unmodified lines
13 options[:skip] = %w(blog)13 options[:skip] = %w(blog)
14 14
15 options[:attribution] = <<-HTML15 options[:attribution] = <<-HTML
16 &copy; 2021-Present Anthony Fu<br>16 &copy; 2021-Present VoidZero Inc. and Vitest contributors<br>
17 &copy; 2021-Present Matias Capeletto<br>
18 Licensed under the MIT License.17 Licensed under the MIT License.
19 HTML18 HTML
20 19
21 self.initial_paths = %w(guide/)20 self.initial_paths = %w(guide/)
22 html_filters.push 'vitest/entries', 'vite/clean_html'21 html_filters.push 'vitest/entries', 'vite/clean_html'
23 22
24 version do23 version do
25 self.release = '3.0.8'24 self.release = '4.0.17'
26 self.base_url = 'https://vitest.dev/'25 self.base_url = 'https://vitest.dev/'
27 end26 end
28 27
28 version '3' do
29 self.release = '3.2.4'
30 self.base_url = 'https://vitest.dev/'
31 end
32
29 version '2' do33 version '2' do
30 self.release = '2.1.9'34 self.release = '2.1.9'
31 self.base_url = 'https://v2.vitest.dev/'35 self.base_url = 'https://v2.vitest.dev/'
public/icons/docs/vitest/16.png+0−0

Binary file not shown.

public/icons/docs/vitest/16@2x.png+0−0

Binary file not shown.

public/icons/docs/vitest/SOURCE+1−0
@@ -1 +1,2 @@
1https://vitest.dev/logo.svg1https://vitest.dev/logo.svg
2https://vitest.dev/favicon.ico