From 327e77838c200bff37ba09daa8115a92f541e24f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Tue, 25 Apr 2023 19:03:29 +0200 Subject: [PATCH] Update VueUse documentation (10.1.0) --- lib/docs/filters/vueuse/entries.rb | 4 ++-- lib/docs/scrapers/vueuse.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/vueuse/entries.rb b/lib/docs/filters/vueuse/entries.rb index 9138abbd..6a1f27bc 100644 --- a/lib/docs/filters/vueuse/entries.rb +++ b/lib/docs/filters/vueuse/entries.rb @@ -12,8 +12,8 @@ module Docs return 'Guide' if slug == 'functions' return 'Guide' if slug == 'guidelines' return 'Guide' if slug.start_with? 'guide' - link = at_css('.link.active') - link.ancestors('section').at_css('.title').content + link = at_css('.is-link.is-active') + link.ancestors('section').at_css('h2.text').content end end end diff --git a/lib/docs/scrapers/vueuse.rb b/lib/docs/scrapers/vueuse.rb index 87c7d574..5eb71b18 100644 --- a/lib/docs/scrapers/vueuse.rb +++ b/lib/docs/scrapers/vueuse.rb @@ -22,7 +22,7 @@ module Docs Licensed under the MIT License. HTML - self.release = '9.10.0' + self.release = '10.1.0' self.base_url = 'https://vueuse.org/' self.initial_paths = %w(functions.html) html_filters.push 'vueuse/entries', 'vite/clean_html', 'vueuse/clean_html'