File tree 7 files changed +66
-5
lines changed
7 files changed +66
-5
lines changed Original file line number Diff line number Diff line change 1076
1076
"contributions" : [
1077
1077
" code"
1078
1078
]
1079
+ },
1080
+ {
1081
+ "login" : " vicbergquist" ,
1082
+ "name" : " Victoria Bergquist" ,
1083
+ "avatar_url" : " https://avatars0.githubusercontent.com/u/25737281?v=4" ,
1084
+ "profile" : " https://twitter.com/vicbergquist" ,
1085
+ "contributions" : [
1086
+ " code"
1087
+ ]
1079
1088
}
1080
1089
],
1081
1090
"repoType" : " github"
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ import * as React from 'react' ;
2
+ import vuepress from './vuepress.png' ;
3
+
4
+ export default props => < img alt = "vuepress" src = { vuepress } { ...props } /> ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import Apollo from '../components/logos/Apollo';
19
19
import Nest from '../components/logos/Nest' ;
20
20
import Static from '../components/logos/Static' ;
21
21
import Styleguidist from '../components/logos/Styleguidist' ;
22
+ import VuePress from '../components/logos/VuePress' ;
22
23
import MDXDeck from '../components/logos/mdx-deck' ;
23
24
24
25
import {
@@ -42,7 +43,8 @@ import {
42
43
sapper ,
43
44
staticTemplate ,
44
45
styleguidist ,
45
- mdxDeck ,
46
+ vuepress ,
47
+ mdxDeck
46
48
} from './' ;
47
49
48
50
import { TemplateType } from './' ;
@@ -96,6 +98,8 @@ export default function getIcon(theme: TemplateType): ReturnedIcon {
96
98
return Static ;
97
99
case styleguidist . name :
98
100
return Styleguidist ;
101
+ case vuepress . name :
102
+ return VuePress ;
99
103
case mdxDeck . name :
100
104
return MDXDeck ;
101
105
default :
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import sapper from './sapper';
20
20
import nest from './nest' ;
21
21
import staticTemplate from './static' ;
22
22
import styleguidist from './styleguidist' ;
23
+ import vuepress from './vuepress' ;
23
24
import mdxDeck from './mdx-deck' ;
24
25
25
26
export {
@@ -45,7 +46,8 @@ export {
45
46
ember ,
46
47
staticTemplate ,
47
48
styleguidist ,
48
- mdxDeck ,
49
+ vuepress ,
50
+ mdxDeck
49
51
} ;
50
52
51
53
export type TemplateType =
@@ -67,6 +69,7 @@ export type TemplateType =
67
69
| 'nest'
68
70
| 'static'
69
71
| 'styleguidist'
72
+ | 'vuepress'
70
73
| 'mdx-deck' ;
71
74
72
75
export default function getDefinition ( theme : TemplateType ) {
@@ -117,6 +120,8 @@ export default function getDefinition(theme: TemplateType) {
117
120
return mdxDeck ;
118
121
case ember . name :
119
122
return ember ;
123
+ case vuepress . name :
124
+ return vuepress ;
120
125
default :
121
126
return react ;
122
127
}
Original file line number Diff line number Diff line change
1
+ // @flow
2
+ import Template from './template' ;
3
+ import { decorateSelector } from '../theme' ;
4
+
5
+ export class VuePressTemplate extends Template {
6
+ // The file to open by the editor
7
+ getDefaultOpenedFiles ( ) {
8
+ return [ '/README.md' , '/guide/README.md' ] ;
9
+ }
10
+ }
11
+ export default new VuePressTemplate (
12
+ 'vuepress' ,
13
+ 'VuePress' ,
14
+ 'https://vuepress.vuejs.org/' ,
15
+ 'github/vicbergquist/codesandbox-vuepress' ,
16
+ decorateSelector ( ( ) => '#4abf8a' ) ,
17
+ {
18
+ mainFile : [ ] , // 🤔
19
+ distDir : 'docs/.vuepress/dist' ,
20
+ isServer : true ,
21
+ showOnHomePage : true ,
22
+ }
23
+ ) ;
You can’t perform that action at this time.
0 commit comments