File tree Expand file tree Collapse file tree 7 files changed +66
-5
lines changed
Expand file tree Collapse file tree 7 files changed +66
-5
lines changed Original file line number Diff line number Diff line change 10761076 "contributions" : [
10771077 " code"
10781078 ]
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+ ]
10791088 }
10801089 ],
10811090 "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';
1919import Nest from '../components/logos/Nest' ;
2020import Static from '../components/logos/Static' ;
2121import Styleguidist from '../components/logos/Styleguidist' ;
22+ import VuePress from '../components/logos/VuePress' ;
2223import MDXDeck from '../components/logos/mdx-deck' ;
2324
2425import {
@@ -42,7 +43,8 @@ import {
4243 sapper ,
4344 staticTemplate ,
4445 styleguidist ,
45- mdxDeck ,
46+ vuepress ,
47+ mdxDeck
4648} from './' ;
4749
4850import { TemplateType } from './' ;
@@ -96,6 +98,8 @@ export default function getIcon(theme: TemplateType): ReturnedIcon {
9698 return Static ;
9799 case styleguidist . name :
98100 return Styleguidist ;
101+ case vuepress . name :
102+ return VuePress ;
99103 case mdxDeck . name :
100104 return MDXDeck ;
101105 default :
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import sapper from './sapper';
2020import nest from './nest' ;
2121import staticTemplate from './static' ;
2222import styleguidist from './styleguidist' ;
23+ import vuepress from './vuepress' ;
2324import mdxDeck from './mdx-deck' ;
2425
2526export {
@@ -45,7 +46,8 @@ export {
4546 ember ,
4647 staticTemplate ,
4748 styleguidist ,
48- mdxDeck ,
49+ vuepress ,
50+ mdxDeck
4951} ;
5052
5153export type TemplateType =
@@ -67,6 +69,7 @@ export type TemplateType =
6769 | 'nest'
6870 | 'static'
6971 | 'styleguidist'
72+ | 'vuepress'
7073 | 'mdx-deck' ;
7174
7275export default function getDefinition ( theme : TemplateType ) {
@@ -117,6 +120,8 @@ export default function getDefinition(theme: TemplateType) {
117120 return mdxDeck ;
118121 case ember . name :
119122 return ember ;
123+ case vuepress . name :
124+ return vuepress ;
120125 default :
121126 return react ;
122127 }
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