You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/summary.js
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,13 @@ program
22
22
.description("Generate a `SUMMARY.md` from a folder")
23
23
.option("-r, --root [string]","root folder, default is `.`")
24
24
.option("-t, --title [string]","book title, default is `Your Book Title`.")
25
-
.option("-c, --catalog [list]","catalog folders included book files, default is `all`.")
26
-
.option("-i, --ignores [list]","ignore folders that be excluded, default is `[]`.",list)
25
+
.option("-c, --catalog [list]","folders to be included in book, default is `all`.")
26
+
.option("-i, --ignores [list]","ignore patterns to be excluded, default is `[]`.",list)
27
27
.option("-u, --unchanged [list]","unchanged catalog like `request.js`, default is `[]`.")
28
-
.option("-o, --outputfile [string]","output file, defaut is `./SUMMARY.md`")
29
-
.option("-s, --sortedBy [string]","sorted by sortedBy, for example: `num-`, defaut is sorted by characters")
28
+
.option("-o, --outputfile [string]","output file, default is `./SUMMARY.md`")
29
+
.option("-s, --sortedBy [string]","sorted by sortedBy, for example: `num-`, default is sorted by characters")
30
30
.option("-d, --disableTitleFormatting","don't convert filename/folder name to start case (for example: `JavaScript` to `Java Script`), default is `false`")
31
+
31
32
.action(function(options){
32
33
// generate `SUMMARY.md`
33
34
// Fixme
@@ -44,7 +45,7 @@ program
44
45
.alias("md")
45
46
.description("Get markdown from a remote url or a local html.")
46
47
.option("-f, --file [file]","path to file")
47
-
.option("-l, --url [url]","artical`s url")
48
+
.option("-l, --url [url]","articles`s url")
48
49
.option("-t, --target [target]","target to be saved")
49
50
.option("-s, --selector [selector]","DOM element selector")
50
51
.action(function(options){
@@ -55,9 +56,9 @@ program
55
56
program
56
57
.command("convert")
57
58
.alias("cv")
58
-
.description("Todo: Convert articals between Simplified and Traditional Chinese.")
59
+
.description("Todo: Convert articles between Simplified and Traditional Chinese.")
0 commit comments