@@ -44,7 +44,8 @@ const cli = meow({
44
44
${ chalk . bold ( 'OPTIONS' ) }
45
45
46
46
${ chalk . bold ( '-n' ) } or ${ chalk . bold ( '--name' ) } ${ chalk . italic ( 'directory_name' ) }
47
- Specify the name of the directory where the project is initialized. Defaults to ${ chalk . underline ( 'onepunch-presentation' ) } .
47
+ Specify the name of the directory where the project is initialized.
48
+ Defaults to ${ chalk . underline ( 'onepunch-presentation' ) } .
48
49
49
50
${ chalk . bold ( '-i' ) } or ${ chalk . bold ( '--input' ) } ${ chalk . italic ( 'htmlfile' ) }
50
51
Specify the HTML file to serve or print, defaults to ${ chalk . underline ( 'index.html' ) } .
@@ -58,6 +59,29 @@ const cli = meow({
58
59
${ chalk . bold ( '--help' ) }
59
60
Display the documentation.
60
61
62
+ ${ chalk . bold ( 'FILES' ) }
63
+
64
+ File ${ chalk . underline ( 'onepunch.json' ) } defines config settings as key-value pairs in JSON format.
65
+ The following keys are provided:
66
+
67
+ ${ chalk . bold ( 'width' ) } : <Number>
68
+ Describe the slide width in pixels, defaults to 960.
69
+
70
+ ${ chalk . bold ( 'height' ) } : <Number>
71
+ Describe the slide height in pixels, defaults to 600.
72
+
73
+ ${ chalk . bold ( 'progress' ) } : <String>
74
+ Describe the presentation progress. At the moment only values "line"
75
+ and "none" are supported.
76
+
77
+ ${ chalk . bold ( 'date' ) } : <String>
78
+ Define the text content of HTML elements with data attribute
79
+ data-onepunch="date", such as <span data-onepunch="date"></span>.
80
+
81
+ ${ chalk . bold ( 'slideNumber' ) } : <Boolean>
82
+ If true, show the slide number in HTML elements with data attribute
83
+ data-onepunch="slide-number", such as <span data-onepunch="slide-number"></span>.
84
+
61
85
${ chalk . bold ( 'LICENSE' ) }
62
86
63
87
Copyright 2020 Nextbit <[email protected] > (https://nextbit.it/)
0 commit comments