From 85798a8d420f4185cc5953fcefc3d5ec216204ad Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 6 Jan 2024 09:57:04 +0100 Subject: [PATCH] Update Vite documentation (5.0.11) --- lib/docs/filters/vite/entries.rb | 2 +- lib/docs/scrapers/vite.rb | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/vite/entries.rb b/lib/docs/filters/vite/entries.rb index db28ea7c..606a19bb 100644 --- a/lib/docs/filters/vite/entries.rb +++ b/lib/docs/filters/vite/entries.rb @@ -8,7 +8,7 @@ module Docs end def get_type - at_css('aside nav .is-active').content.strip + name end def additional_entries diff --git a/lib/docs/scrapers/vite.rb b/lib/docs/scrapers/vite.rb index ff82da01..46309fa7 100644 --- a/lib/docs/scrapers/vite.rb +++ b/lib/docs/scrapers/vite.rb @@ -15,16 +15,22 @@ module Docs Licensed under the MIT License. HTML - options[:skip] = %w(team.html plugins/) + options[:skip] = %w(team.html team) + options[:skip_patterns] = [/\Ablog/, /\Aplugins/] self.initial_paths = %w(guide/) html_filters.push 'vite/entries', 'vite/clean_html' version do - self.release = '4.4.8' + self.release = '5.0.11' self.base_url = 'https://vitejs.dev/' end + version '4' do + self.release = '4.5.1' + self.base_url = 'https://v4.vitejs.dev/' + end + version '3' do self.release = '3.2.5' self.base_url = 'https://v3.vitejs.dev/'