From a7dbc9d4dd1644a967d9e95160079fc630df601f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Fri, 22 Oct 2021 21:42:39 +0200 Subject: [PATCH] Update Vue Router documentation (4.0.12) --- lib/docs/filters/vue_router/entries.rb | 6 +++--- lib/docs/scrapers/vue_router.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/docs/filters/vue_router/entries.rb b/lib/docs/filters/vue_router/entries.rb index b38fed28..11c5e8a0 100644 --- a/lib/docs/filters/vue_router/entries.rb +++ b/lib/docs/filters/vue_router/entries.rb @@ -3,7 +3,7 @@ module Docs class EntriesFilter < Docs::EntriesFilter def get_name name = at_css('h1').content - name.remove! '# ' + name.sub! %r{#\s*}, '' name end @@ -34,9 +34,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*}, '' case title when 'Router Construction Options' diff --git a/lib/docs/scrapers/vue_router.rb b/lib/docs/scrapers/vue_router.rb index accb8455..3456fd59 100644 --- a/lib/docs/scrapers/vue_router.rb +++ b/lib/docs/scrapers/vue_router.rb @@ -21,7 +21,7 @@ module Docs HTML version '4' do - self.release = '4.0.3' + self.release = '4.0.12' self.base_url = 'https://next.router.vuejs.org/' end