From 49d182dfd664067ee3fbd231817fd91651166362 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Fri, 22 Oct 2021 21:43:48 +0200 Subject: [PATCH] Update Vuex documentation (4.0.2) --- lib/docs/filters/vuex/entries.rb | 6 +++--- lib/docs/scrapers/vuex.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/docs/filters/vuex/entries.rb b/lib/docs/filters/vuex/entries.rb index 04846fd2..cb037399 100644 --- a/lib/docs/filters/vuex/entries.rb +++ b/lib/docs/filters/vuex/entries.rb @@ -4,7 +4,7 @@ module Docs def get_name name = at_css('h1').content - name.remove! '# ' + name.sub! %r{#\s*}, '' # Add index on guides unless subpath.start_with?('api') @@ -42,9 +42,9 @@ module Docs title = node title = title.previous_element until title.name == 'h2' title = title.content.strip - title.remove! '# ' + title.sub! %r{#\s*}, '' - entry_name.remove! '# ' + entry_name.sub! %r{#\s*}, '' unless entry_name.start_with?('router.') case title diff --git a/lib/docs/scrapers/vuex.rb b/lib/docs/scrapers/vuex.rb index e2d9c66a..041593fb 100644 --- a/lib/docs/scrapers/vuex.rb +++ b/lib/docs/scrapers/vuex.rb @@ -19,7 +19,7 @@ module Docs HTML version '4' do - self.release = '4.0.0' + self.release = '4.0.2' self.base_url = 'https://next.vuex.vuejs.org/' end