File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ var app = {
76
76
apisuccessexample : './parsers/api_success_example.js' ,
77
77
apiuse : './parsers/api_use.js' ,
78
78
apiversion : './parsers/api_version.js' ,
79
- apisamplerequest : './parsers/api_sample_request.js'
79
+ apisamplerequest : './parsers/api_sample_request.js' ,
80
+ apideprecated : './parsers/api_deprecated.js'
80
81
} ,
81
82
workers : {
82
83
apierrorstructure : './workers/api_error_structure.js' ,
Original file line number Diff line number Diff line change
1
+ var trim = require ( '../utils/trim' ) ;
2
+
3
+ function parse ( content ) {
4
+ var deprecated = trim ( content ) ;
5
+
6
+ if ( deprecated . length > 0 ) {
7
+ var group = deprecated . split ( ' ' ) [ 0 ] ;
8
+ group = group . charAt ( 0 ) . toUpperCase ( ) + group . slice ( 1 ) ;
9
+ var name = deprecated . substr ( deprecated . indexOf ( ' ' ) + 1 ) ;
10
+ var url = name . replace ( / ( \s + ) / g, '_' ) . replace ( / \' / g, '_' ) ;
11
+ return {
12
+ deprecated : {
13
+ group : group ,
14
+ name : name ,
15
+ url : url
16
+ }
17
+ } ;
18
+ }
19
+
20
+ return {
21
+ deprecated : {
22
+ url : null
23
+ }
24
+ } ;
25
+ }
26
+
27
+ /**
28
+ * Exports
29
+ */
30
+ module . exports = {
31
+ parse : parse ,
32
+ path : 'local' ,
33
+ method : 'insert'
34
+ } ;
You can’t perform that action at this time.
0 commit comments