forked from docstrap/docstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jsdoc.json
195 lines (194 loc) · 7.69 KB
/
.jsdoc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"tags": {
"allowUnknownTags": true
},
"plugins": [ "node_modules/jsdoc/plugins/markdown", "shin-jsdoc-tags.js" ], // "_plugins/shinmark", "plugins/summarize", "node_modules/@shizen/jsdoc-tags/tags.js"
"markdown": {
"tags": ["issues", "notes", "remarks", "algorithm", "changelog", "honors", "todo" ]
},
"excludePattern": "(^|\\/|\\\\)",
"recurseDepth": 5,
"source": {
"exclude": [ "node_modules" ]
},
"opts": {
"template": "node_modules/@shizen/shinstrap/template",
// "template": "node_modules/jsdoc/templates/default",
"tutorials" : "design" // Sadly, we can only specify one directory, so either links or a pre-gen hook is required.
},
"templates": {
"logoFile": "img/ShinworksBW.png",
"favicon": "assets/Shinworks.svg",
"repository": "https://github.com/Shizen/shinstrap",
"repoIcon": "assets/GitHub-Mark-32px.png",
"cleverLinks": false,
"monospaceLinks": false,
"dateFormat": "ddd MMM Do YYYY",
"outputSourceFiles": false,
"outputSourcePath": false,
"systemName": "shinstrap",
"footer": "",
"copyright": "`shinstrap` (forked from `ink-docstrap`) by <a href='emailto:shin@shinworks.co'>Shin</a>", // Does not go through markdown
"navType": "vertical",
"theme": "lumen",
"linenums": true,
"collapseSymbols": false,
"inverseNav": true,
"protocol": "html://",
"methodHeadingReturns": false,
"syntaxTheme": "dark",
"supplementalCSS": "assets/local.css",
"customizeOutput": {
"menus" : {
"APIs" : {
"title": "APIs",
"order": 1, // Ignored atm
"members": [ "DESIGN", "DEVLOG" ],
"access": "private"
},
"Usage" : {
"title": "Usage",
"members": ["Usage"]
}
},
"doclets" : { // This is where I could add rules to allow generation of separate pages
"template": {
"processing" : [ "addAttribs", "shinHelpers.addScopeToAttribs", "addSignatureTypes" ]
}
},
"container" : {
"article" : {
"overview": { // Module with modules or every other case... ("class" case is covered by method)
"all" : [ "description", "notes", "design", "*" ],
"tags" : {
"notes": {
"entryWrapper": "details",
"titleWrapper": "summary",
"titleWrapperAttributes": "class='jsdoc-notes-title subsection-title'",
"wrapper": "div",
"wrapperAttributes" : "class=jsdoc-notes-body"
},
"design": {
"titleWrapper": "h5",
"titleWrapperAttributes": "class='jsdoc-design-title subsection-title'",
"wrapper": "div",
"wrapperAttributes" : "class=jsdoc-design-body"
}
}
},
"body": {
"all" : [ "augments", "requires", "classes", "mixins", "namespaces", "templates", "*" ],
"tags" : {
"tasks": {
"find": {
"kind": "task",
"memberof": "_doclet.contents && _doclet.contents.title === 'Global' ? {isUndefined: true} : _doclet.longname" // Right now this is convention that `memberof` is resolved while `kind` is static. One could create an interpolation pattern instead, but overkill for the moment
},
"titleWrapper": "h3",
"titleWrapperAttributes": "class='jsdoc-task-title subsection-title'",
"usePerItemPartial": "method.tmpl"
},
"templates": {
"find": {
"kind": "template",
"memberof": "_doclet.longname"
},
"validate": "_doclet.kind !== 'globalobj'",
"titleWrapper": "h3",
"titleWrapperAttributes": "class='jsdoc-template-title subsection-title shinstrap-collapsible' data-hide='false' title='Documentation for the templates used by this module.'",
"outerWrapper": "dl",
"usePerItemPartial": "method.tmpl"
},
// Look ma, I'm overriding defaults.
"members":{
"find": {
"kind": "member",
"memberof": "_doclet.contents && _doclet.contents.title === 'Global' ? {isUndefined: true} : _doclet.longname"
},
"titleWrapper": "h3",
"titleWrapperAttributes": "class='subsection-title shinstrap-collapsible' data-hide='true'",
"usePerItemPartial": "members.tmpl",
"outerWrapper": "div"
},
"methods":{
"find": {
"kind": "function",
"memberof": "_doclet.contents && _doclet.contents.title === 'Global' ? {isUndefined: true} : _doclet.longname"
},
"titleWrapper": "h3",
"titleWrapperAttributes": "class='subsection-title shinstrap-collapsible' data-hide='false'",
"usePerItemPartial": "method.tmpl",
"outerWrapper": "div"
}
}
}
}
},
"method": {
"all": [ "template", "honors", "description", "remarks", "*", "futures", "redirect" ],
"tags": {
"redirect": {
"entryWrapper": "fieldset",
"entryWrapperAttributes": "class='jsdoc-redirect shinstrap-collapsible' data-hide=true",
"titleWrapper": "legend",
"titleWrapperAttributes": "class='jsdoc-redirect-title'",
"titleCaption": "(Redirect)",
"titleInterpolation": "<span class='glyphicon glyphicon-time' aria-hidden='true'></span> Redirected: ${_doclet.redirect}",
"find": {
"longname": "_doclet.redirect"
},
"usePerItemPartial": "method.tmpl"
},
"template": {
"titleWrapper": "h5",
"titleWrapperAttributes": "class=jsdoc-template-filename-title",
"titleCaption": "Template File:",
"alternateHandler": "listing.scaffolded.kv.tmpl",
"wrapper": "span",
"wrapperAttributes": "class=jsdoc-template-filename"
},
"honors" : {
"titleWrapper": "h5",
"titleWrapperAttributes": "class=jsdoc-honors-title",
"titleCaption": "<em>Honors</em> the following configuration settings:",
"usePartial": "params.tmpl"
},
"remarks": {
"titleWrapper": "h5",
"titleWrapperAttributes": "class='jsdoc-remarks-title capitalize-title'",
"wrapper": "div",
"wrapperAttributes" : "class=jsdoc-remarks-body"
},
"futures": {
"titleWrapper": "dt",
"titleCaption": "Futures:",
"titleWrapperAttributes": "class='jsdoc-futures-title capitalize-title method-doc-label method-doc-details-label'",
"outermostWrapper": "dd",
"outermostWrapperAttributes": "class=jsdoc-futures",
"outerWrapper": "ul",
"wrapper": "li"
},
"attribs": {
"alternateHandler": "partial.scaffolded.attribs.tmpl",
"template": {
"displayStyle": "badges" // One of badges, buttons, csl
}
}
}
},
"details": {
"all": [ "todo", "*" ]
},
"members": {
"tags": {
"attribs": {
"alternateHandler": "partial.scaffolded.attribs.tmpl",
"template": {
"displayStyle": "csl" // One of badges, buttons, csl
}
}
}
}
}
}
}