File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "usageDesc" : " 例子" ,
3
+ "commandInitDesc" : " 创建 docs" ,
4
+ "commandInitOptionLocalDesc" : " 拷贝 docsify 到本地" ,
5
+ "commandInitOptionThemeDesc" : " 选择主题" ,
6
+ "commandServeDesc" : " 本地预览" ,
7
+ "commandServeOptionPortDesc" : " 端口" ,
8
+ "optionHelpDesc" : " 帮助" ,
9
+ "optionVersionDesc" : " 当先版本号" ,
10
+ "epilogDesc" : " 文档"
11
+ }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module.exports = function (path, port) {
13
13
var indexFile = resolve ( path , 'index.html' )
14
14
15
15
if ( ! exists ( indexFile ) ) {
16
- const msg = '\nNo docs found, please run ' + chalk . inverse ( 'docsify init' ) + ' first.\n'
16
+ const msg = '\nNo docs found, please run ' + chalk . green ( 'docsify init' ) + ' first.\n'
17
17
console . log ( msg )
18
18
process . exit ( 0 )
19
19
}
@@ -27,7 +27,7 @@ module.exports = function (path, port) {
27
27
exts : [ 'md' ]
28
28
} ) . watch ( path )
29
29
30
- const msg = '\nServing ' + chalk . inverse ( `${ path } ` ) + ' now.\n' +
31
- 'Listening at ' + chalk . inverse ( `http://localhost:${ port } ` ) + '\n'
30
+ const msg = '\nServing ' + chalk . green ( `${ path } ` ) + ' now.\n' +
31
+ 'Listening at ' + chalk . green ( `http://localhost:${ port } ` ) + '\n'
32
32
console . log ( msg )
33
33
}
You can’t perform that action at this time.
0 commit comments