Skip to content

Commit e0b8d4b

Browse files
committed
default file to open in editor
1 parent 5264962 commit e0b8d4b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/common/src/templates/vuepress.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
import Template from './template';
33
import { decorateSelector } from '../theme';
44

5-
export default new Template(
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(
612
'vuepress',
713
'VuePress',
814
'https://vuepress.vuejs.org/',

0 commit comments

Comments
 (0)