File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,8 @@ module Docs
22 class Vue
33 class CleanHtmlFilter < Filter
44 def call
5- if current_url . host == 'vitejs.dev'
6- return '<h1>Vite</h1>' if root_page?
7- @doc = at_css ( '.content > div' )
8- else
9- return '<h1>Vue.js</h1>' if root_page?
10- @doc = at_css ( version == '3' ? 'main > div > div' : '.content' )
11- end
5+ return '<h1>Vue.js</h1>' if root_page?
6+ @doc = at_css ( version == '3' ? 'main > div > div' : '.content' )
127
138 at_css ( 'h1' ) . content = 'Vue.js' if root_page?
149 doc . child . before ( '<h1>Vue.js API</h1>' ) if slug == 'api/' || slug == 'api/index'
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class Vue < UrlScraper
2929 self . release = '2.7.14'
3030 self . base_url = 'https://v2.vuejs.org/v2/'
3131 self . initial_paths = %w( api/ )
32+ self . root_path = 'guide/'
3233 html_filters . push 'vue/entries' , 'vue/clean_html'
3334 end
3435
You can’t perform that action at this time.
0 commit comments