File tree Expand file tree Collapse file tree 4 files changed +33
-21
lines changed Expand file tree Collapse file tree 4 files changed +33
-21
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ var hljs = require('highlight.js'),
2
2
markdown = require ( 'markdown-it' ) ( {
3
3
html : true ,
4
4
highlight : function ( code ) {
5
+
5
6
return hljs . highlight ( 'javascript' , code ) . value ;
7
+
6
8
}
7
9
} ) ;
8
10
@@ -28,4 +30,14 @@ module.exports = function (hbs) {
28
30
29
31
} ) ;
30
32
33
+ hbs . registerHelper ( 'replace' , function ( string , match , replacement ) {
34
+
35
+ if ( string ) {
36
+
37
+ return string . replace ( match , replacement ) ;
38
+
39
+ }
40
+
41
+ } ) ;
42
+
31
43
} ;
Original file line number Diff line number Diff line change 12
12
"handlebars" : " 3.0.1" ,
13
13
"highlight.js" : " 8.5.0" ,
14
14
"markdown-it" : " 4.1.0" ,
15
- "promise" : " 6.1 .0" ,
15
+ "promise" : " 7.0 .0" ,
16
16
"sqlite3" : " 3.0.5" ,
17
17
"temp" : " 0.8.1"
18
18
},
19
19
"devDependencies" : {
20
- "mocha" : " 2.2.1 "
20
+ "mocha" : " 2.2.4 "
21
21
},
22
22
"scripts" : {
23
23
"test" : " make test"
Original file line number Diff line number Diff line change 1
1
{{ #if pkg.homepage }}
2
- #[{{ title }} ]({{ pkg.homepage }} ) {{ #if pkg.version }} _ {{ pkg.version }} _ {{ /if }}
2
+ # [{{ title }} ]({{ pkg.homepage }} ) {{ #if pkg.version }} * {{ pkg.version }} * {{ /if }}
3
3
{{ else }}
4
- #{{ title }} {{ #if pkg.version }} _ {{ pkg.version }} _ {{ /if }}
4
+ # {{ title }} {{ #if pkg.version }} * {{ pkg.version }} * {{ /if }}
5
5
{{ /if }}
6
6
7
7
{{ #if description }}
10
10
11
11
{{ #each files }}{{ #each methods }}
12
12
13
- ##{{ name }} ({{ params }} ) {{ #if isPrivate }} _private method_ {{ /if }}
13
+ ## {{ name }} ({{ params }} ) {{ #if isPrivate }} *private method* {{ /if }}
14
14
15
15
{{{ description }}}
16
16
17
17
{{{ body }}}
18
18
19
19
{{ #if tags.param }}
20
20
21
- ###Parameters
21
+ ### Parameters
22
22
23
23
{{ #each tags.param }}
24
- - **{{ name }} ** {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} _Optional_ {{ /if }} {{{ description }}}
24
+ - **{{ name }} ** {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} *Optional* {{ /if }} {{{ description }}}
25
25
{{ /each }}
26
26
27
27
{{ /if }}
28
28
29
29
{{ #if tags.property }}
30
30
31
- ###Properties
31
+ ### Properties
32
32
33
33
{{ #each tags.property }}
34
- - **{{ name }} ** {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} _Optional_ {{ /if }} {{{ description }}}
34
+ - **{{ name }} ** {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} *Optional* {{ /if }} {{{ description }}}
35
35
{{ /each }}
36
36
37
37
{{ /if }}
38
38
39
39
{{ #if tags.example }}
40
40
41
- ###Examples
41
+ ### Examples
42
42
43
43
{{ #each tags.example }}
44
44
```javascript
48
48
49
49
{{ /if }}
50
50
51
- ###Returns
51
+ ### Returns
52
52
53
53
{{ #if tags.return }}
54
54
55
55
{{ #each tags.return }}
56
- - {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} _Optional_ {{ /if }} {{{ description }}}
56
+ - {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} *Optional* {{ /if }} {{{ description }}}
57
57
{{ /each }}
58
58
59
59
{{ else }}
64
64
65
65
{{ /each }}{{ /each }}
66
66
67
- _Documentation generated with [doxdox](https://github.com/neogeek/doxdox)._
67
+ *Documentation generated with [doxdox](https://github.com/neogeek/doxdox).*
Original file line number Diff line number Diff line change 1
- #{{ name }} ({{ params }} ) {{ #if isPrivate }} _private method_ {{ /if }}
1
+ # {{ name }} ({{ params }} ) {{ #if isPrivate }} *private method* {{ /if }}
2
2
3
3
{{{ description }}}
4
4
5
5
{{{ body }}}
6
6
7
7
{{ #if tags.param }}
8
8
9
- ##Parameters
9
+ ## Parameters
10
10
11
11
{{ #each tags.param }}
12
- - **{{ name }} ** {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} _Optional_ {{ /if }} {{{ description }}}
12
+ - **{{ name }} ** {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} *Optional* {{ /if }} {{{ description }}}
13
13
{{ /each }}
14
14
15
15
{{ /if }}
16
16
17
17
{{ #if tags.property }}
18
18
19
- ##Properties
19
+ ## Properties
20
20
21
21
{{ #each tags.property }}
22
- - **{{ name }} ** {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} _Optional_ {{ /if }} {{{ description }}}
22
+ - **{{ name }} ** {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} *Optional* {{ /if }} {{{ description }}}
23
23
{{ /each }}
24
24
25
25
{{ /if }}
26
26
27
27
{{ #if tags.example }}
28
28
29
- ##Examples
29
+ ## Examples
30
30
31
31
{{ #each tags.example }}
32
32
```javascript
36
36
37
37
{{ /if }}
38
38
39
- ##Returns
39
+ ## Returns
40
40
41
41
{{ #if tags.return }}
42
42
43
43
{{ #each tags.return }}
44
- - {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} _Optional_ {{ /if }} {{{ description }}}
44
+ - {{ #each types }} `{{ . }} ` {{ /each }} {{ #if isOptional }} *Optional* {{ /if }} {{{ description }}}
45
45
{{ /each }}
46
46
47
47
{{ else }}
You can’t perform that action at this time.
0 commit comments