From 553240c4f04623403ac1b62a7ba72e44c193b578 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 17 Nov 2024 16:03:11 +0100 Subject: [PATCH] Update Vite documentation (5.4.11) --- lib/docs/filters/vite/clean_html.rb | 1 + lib/docs/scrapers/vite.rb | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/docs/filters/vite/clean_html.rb b/lib/docs/filters/vite/clean_html.rb index 5e213236..c19745ca 100644 --- a/lib/docs/filters/vite/clean_html.rb +++ b/lib/docs/filters/vite/clean_html.rb @@ -24,6 +24,7 @@ module Docs node.remove end + css('.lang').remove css('.line-numbers-wrapper').remove css('pre').each do |node| node.content = node.content.strip diff --git a/lib/docs/scrapers/vite.rb b/lib/docs/scrapers/vite.rb index e63b1454..e6ed5203 100644 --- a/lib/docs/scrapers/vite.rb +++ b/lib/docs/scrapers/vite.rb @@ -4,7 +4,7 @@ module Docs self.slug = 'vite' self.type = 'simple' self.links = { - home: 'https://vitejs.dev/', + home: 'https://vite.dev/', code: 'https://github.com/vitejs/vite' } @@ -22,18 +22,18 @@ module Docs html_filters.push 'vite/entries', 'vite/clean_html' version do - self.release = '5.2.13' - self.base_url = 'https://vitejs.dev/' + self.release = '5.4.11' + self.base_url = 'https://vite.dev/' end version '4' do - self.release = '4.5.1' - self.base_url = 'https://v4.vitejs.dev/' + self.release = '4.5.5' + self.base_url = 'https://v4.vite.dev/' end version '3' do - self.release = '3.2.5' - self.base_url = 'https://v3.vitejs.dev/' + self.release = '3.2.11' + self.base_url = 'https://v3.vite.dev/' end def get_latest_version(opts)