File tree Expand file tree Collapse file tree 7 files changed +46
-1
lines changed Expand file tree Collapse file tree 7 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 1
1
[
2
+ [
3
+ " 2021-12-04" ,
4
+ " New documentation: <a href=\" /vite/\" >Vite</a>"
5
+ ],
2
6
[
3
7
" 2021-11-29" ,
4
8
" New documentation: <a href=\" /i3/\" >i3</a>"
Original file line number Diff line number Diff line change @@ -851,6 +851,11 @@ credits = [
851
851
' 2010-2018 Mitchell Hashimoto' ,
852
852
' MPL' ,
853
853
' https://raw.githubusercontent.com/mitchellh/vagrant/master/website/LICENSE.md'
854
+ ], [
855
+ ' Vite' ,
856
+ ' 2019–present, Yuxi (Evan) You and Vite contributors' ,
857
+ ' MIT' ,
858
+ ' https://github.com/vitejs/vite/blob/main/LICENSE'
854
859
], [
855
860
' Vue Router' ,
856
861
' 2013-present Evan You' ,
Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ module Docs
2
2
class Vue
3
3
class CleanHtmlFilter < Filter
4
4
def call
5
- @doc = at_css ( version == '3' ? 'main' : '.content' )
5
+ if current_url . host == 'vitejs.dev'
6
+ return '<h1>Vite</h1>' if root_page?
7
+ @doc = at_css ( '.content > div' )
8
+ else
9
+ @doc = at_css ( version == '3' ? 'main' : '.content' )
10
+ end
6
11
7
12
at_css ( 'h1' ) . content = 'Vue.js' if root_page?
8
13
doc . child . before ( '<h1>Vue.js API</h1>' ) if slug == 'api/' || slug == 'api/index'
Original file line number Diff line number Diff line change
1
+ module Docs
2
+ class Vite < UrlScraper
3
+ self . name = 'Vite'
4
+ self . slug = 'vite'
5
+ self . type = 'simple'
6
+ self . links = {
7
+ home : 'https://vitejs.dev/' ,
8
+ code : 'https://github.com/vitejs/vite'
9
+ }
10
+
11
+ options [ :container ] = 'main'
12
+ options [ :root_title ] = 'Vite'
13
+
14
+ options [ :attribution ] = <<-HTML
15
+ © 2019–present, Yuxi (Evan) You and Vite contributors< br >
16
+ Licensed under the MIT License.
17
+ HTML
18
+
19
+ version do
20
+ self . release = '2.6.14'
21
+ self . base_url = 'https://vitejs.dev/'
22
+ self . initial_paths = %w( guide/ )
23
+ html_filters . push 'vue/entries_v3' , 'vue/clean_html'
24
+ end
25
+
26
+ def get_latest_version ( opts )
27
+ get_npm_version ( 'vite' , opts )
28
+ end
29
+ end
30
+ end
Original file line number Diff line number Diff line change
1
+ https://vitejs.dev/logo.svg
You can’t perform that action at this time.
0 commit comments