@braintree/jsdoc-template 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/LICENSE +27 -0
  3. package/README.md +89 -0
  4. package/package.json +51 -0
  5. package/publish.js +676 -0
  6. package/static/fonts/OpenSans-Bold-webfont.eot +0 -0
  7. package/static/fonts/OpenSans-Bold-webfont.svg +1830 -0
  8. package/static/fonts/OpenSans-Bold-webfont.woff +0 -0
  9. package/static/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  10. package/static/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  11. package/static/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  12. package/static/fonts/OpenSans-Italic-webfont.eot +0 -0
  13. package/static/fonts/OpenSans-Italic-webfont.svg +1830 -0
  14. package/static/fonts/OpenSans-Italic-webfont.woff +0 -0
  15. package/static/fonts/OpenSans-Light-webfont.eot +0 -0
  16. package/static/fonts/OpenSans-Light-webfont.svg +1831 -0
  17. package/static/fonts/OpenSans-Light-webfont.woff +0 -0
  18. package/static/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  19. package/static/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  20. package/static/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  21. package/static/fonts/OpenSans-Regular-webfont.eot +0 -0
  22. package/static/fonts/OpenSans-Regular-webfont.svg +1831 -0
  23. package/static/fonts/OpenSans-Regular-webfont.woff +0 -0
  24. package/static/fonts/OpenSans-Semibold-webfont.eot +0 -0
  25. package/static/fonts/OpenSans-Semibold-webfont.svg +1830 -0
  26. package/static/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  27. package/static/fonts/OpenSans-Semibold-webfont.woff +0 -0
  28. package/static/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  29. package/static/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  30. package/static/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  31. package/static/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  32. package/static/icons/home.svg +4 -0
  33. package/static/icons/search.svg +4 -0
  34. package/static/scripts/linenumber.js +23 -0
  35. package/static/scripts/pagelocation.js +89 -0
  36. package/static/styles/collapse.css +27 -0
  37. package/static/styles/jsdoc-default.css +953 -0
  38. package/static/styles/prettify-jsdoc.css +111 -0
  39. package/static/styles/prettify-tomorrow.css +138 -0
  40. package/tmpl/augments.tmpl +10 -0
  41. package/tmpl/container.tmpl +213 -0
  42. package/tmpl/details.tmpl +223 -0
  43. package/tmpl/example.tmpl +2 -0
  44. package/tmpl/examples.tmpl +14 -0
  45. package/tmpl/exceptions.tmpl +28 -0
  46. package/tmpl/layout.tmpl +150 -0
  47. package/tmpl/mainpage.tmpl +9 -0
  48. package/tmpl/members.tmpl +38 -0
  49. package/tmpl/method.tmpl +128 -0
  50. package/tmpl/params.tmpl +125 -0
  51. package/tmpl/properties.tmpl +111 -0
  52. package/tmpl/returns.tmpl +17 -0
  53. package/tmpl/source.tmpl +9 -0
  54. package/tmpl/tutorial.tmpl +23 -0
  55. package/tmpl/type.tmpl +11 -0
@@ -0,0 +1,111 @@
1
+ /* JSDoc prettify.js theme */
2
+
3
+ /* plain text */
4
+ .pln {
5
+ color: #000000;
6
+ font-weight: normal;
7
+ font-style: normal;
8
+ }
9
+
10
+ /* string content */
11
+ .str {
12
+ color: hsl(104, 100%, 24%);
13
+ font-weight: normal;
14
+ font-style: normal;
15
+ }
16
+
17
+ /* a keyword */
18
+ .kwd {
19
+ color: #000000;
20
+ font-weight: bold;
21
+ font-style: normal;
22
+ }
23
+
24
+ /* a comment */
25
+ .com {
26
+ font-weight: normal;
27
+ font-style: italic;
28
+ }
29
+
30
+ /* a type name */
31
+ .typ {
32
+ color: #000000;
33
+ font-weight: normal;
34
+ font-style: normal;
35
+ }
36
+
37
+ /* a literal value */
38
+ .lit {
39
+ color: #006400;
40
+ font-weight: normal;
41
+ font-style: normal;
42
+ }
43
+
44
+ /* punctuation */
45
+ .pun {
46
+ color: #000000;
47
+ font-weight: bold;
48
+ font-style: normal;
49
+ }
50
+
51
+ /* lisp open bracket */
52
+ .opn {
53
+ color: #000000;
54
+ font-weight: bold;
55
+ font-style: normal;
56
+ }
57
+
58
+ /* lisp close bracket */
59
+ .clo {
60
+ color: #000000;
61
+ font-weight: bold;
62
+ font-style: normal;
63
+ }
64
+
65
+ /* a markup tag name */
66
+ .tag {
67
+ color: #006400;
68
+ font-weight: normal;
69
+ font-style: normal;
70
+ }
71
+
72
+ /* a markup attribute name */
73
+ .atn {
74
+ color: #006400;
75
+ font-weight: normal;
76
+ font-style: normal;
77
+ }
78
+
79
+ /* a markup attribute value */
80
+ .atv {
81
+ color: #006400;
82
+ font-weight: normal;
83
+ font-style: normal;
84
+ }
85
+
86
+ /* a declaration */
87
+ .dec {
88
+ color: #000000;
89
+ font-weight: bold;
90
+ font-style: normal;
91
+ }
92
+
93
+ /* a variable name */
94
+ .var {
95
+ color: #000000;
96
+ font-weight: normal;
97
+ font-style: normal;
98
+ }
99
+
100
+ /* a function name */
101
+ .fun {
102
+ color: #000000;
103
+ font-weight: bold;
104
+ font-style: normal;
105
+ }
106
+
107
+ /* Specify class=linenums on a pre to get line numbering */
108
+ ol.linenums {
109
+ margin-top: 0;
110
+ margin-bottom: 0;
111
+ }
@@ -0,0 +1,138 @@
1
+ /* Tomorrow Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* Pretty printing styles. Used with prettify.js. */
4
+ /* SPAN elements with the classes below are added by prettyprint. */
5
+ /* plain text */
6
+ .pln {
7
+ color: #4d4d4c; }
8
+
9
+ @media screen {
10
+ /* string content */
11
+ .str {
12
+ color: hsl(104, 100%, 24%); }
13
+
14
+ /* a keyword */
15
+ .kwd {
16
+ color: hsl(240, 100%, 50%); }
17
+
18
+ /* a comment */
19
+ .com {
20
+ color: hsl(0, 0%, 60%); }
21
+
22
+ /* a type name */
23
+ .typ {
24
+ color: hsl(240, 100%, 32%); }
25
+
26
+ /* a literal value */
27
+ .lit {
28
+ color: hsl(240, 100%, 40%); }
29
+
30
+ /* punctuation */
31
+ .pun {
32
+ color: #000000; }
33
+
34
+ /* lisp open bracket */
35
+ .opn {
36
+ color: #000000; }
37
+
38
+ /* lisp close bracket */
39
+ .clo {
40
+ color: #000000; }
41
+
42
+ /* a markup tag name */
43
+ .tag {
44
+ color: #c82829; }
45
+
46
+ /* a markup attribute name */
47
+ .atn {
48
+ color: #f5871f; }
49
+
50
+ /* a markup attribute value */
51
+ .atv {
52
+ color: #3e999f; }
53
+
54
+ /* a declaration */
55
+ .dec {
56
+ color: #f5871f; }
57
+
58
+ /* a variable name */
59
+ .var {
60
+ color: #c82829; }
61
+
62
+ /* a function name */
63
+ .fun {
64
+ color: #4271ae; } }
65
+ /* Use higher contrast and text-weight for printable form. */
66
+ @media print, projection {
67
+ .str {
68
+ color: #060; }
69
+
70
+ .kwd {
71
+ color: #006;
72
+ font-weight: bold; }
73
+
74
+ .com {
75
+ color: #600;
76
+ font-style: italic; }
77
+
78
+ .typ {
79
+ color: #404;
80
+ font-weight: bold; }
81
+
82
+ .lit {
83
+ color: #044; }
84
+
85
+ .pun, .opn, .clo {
86
+ color: #440; }
87
+
88
+ .tag {
89
+ color: #006;
90
+ font-weight: bold; }
91
+
92
+ .atn {
93
+ color: #404; }
94
+
95
+ .atv {
96
+ color: #060; } }
97
+ /* Style */
98
+ /*
99
+ pre.prettyprint {
100
+ background: white;
101
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
102
+ font-size: 12px;
103
+ line-height: 1.5;
104
+ border: 1px solid #ccc;
105
+ padding: 10px; }
106
+ */
107
+
108
+ /* Get LI elements to show when they are in the main article */
109
+ article ul li {
110
+ list-style-type: circle;
111
+ margin-left: 25px;
112
+ }
113
+
114
+ /* Specify class=linenums on a pre to get line numbering */
115
+ ol.linenums {
116
+ margin-top: 0;
117
+ margin-bottom: 0; }
118
+
119
+ /* IE indents via margin-left */
120
+ li.L0,
121
+ li.L1,
122
+ li.L2,
123
+ li.L3,
124
+ li.L4,
125
+ li.L5,
126
+ li.L6,
127
+ li.L7,
128
+ li.L8,
129
+ li.L9 {
130
+ /* */ }
131
+
132
+ /* Alternate shading for lines */
133
+ li.L1,
134
+ li.L3,
135
+ li.L5,
136
+ li.L7,
137
+ li.L9 {
138
+ /* */ }
@@ -0,0 +1,10 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+
6
+ <?js if (data.augments && data.augments.length) { ?>
7
+ <ul><?js data.augments.forEach(function(a) { ?>
8
+ <li><?js= self.linkto(a, a) ?></li>
9
+ <?js }) ?></ul>
10
+ <?js } ?>
@@ -0,0 +1,213 @@
1
+ <?js
2
+ var self = this;
3
+ var conf = env.conf;
4
+ var isGlobalPage;
5
+
6
+ docs.forEach(function(doc, i) {
7
+ isGlobalPage = isGlobalPage || doc.kind === 'globalobj';
8
+
9
+ if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
10
+ <?js= self.partial('mainpage.tmpl', doc) ?>
11
+ <?js } else if (doc.kind === 'source') { ?>
12
+ <?js= self.partial('source.tmpl', doc) ?>
13
+ <?js } else { ?>
14
+
15
+ <section>
16
+ <header>
17
+ <?js if (!doc.longname || doc.kind !== 'module') { ?>
18
+ <h2>
19
+ <?js if (doc.ancestors && doc.ancestors.length) { ?>
20
+ <span class="ancestors"><?js= doc.ancestors.join('') ?></span>
21
+ <?js } ?>
22
+ <?js= doc.name ?>
23
+ <?js if (doc.variation) { ?>
24
+ <sup class="variation"><?js= doc.variation ?></sup>
25
+ <?js } ?>
26
+ </h2>
27
+
28
+ <?js if (doc.classdesc) { ?>
29
+ <div class="class-description">
30
+ <?js= doc.classdesc ?>
31
+ </div>
32
+ <?js } ?>
33
+ <?js } else if (doc.kind === 'module' && doc.modules) { ?>
34
+ <?js doc.modules.forEach(function(module) { ?>
35
+ <?js if (module.classdesc) { ?>
36
+ <div class="class-description">
37
+ <?js= module.classdesc ?>
38
+ </div>
39
+ <?js }
40
+ })
41
+ } ?>
42
+ </header>
43
+
44
+ <article>
45
+ <div class="container-overview">
46
+ <?js if (doc.kind === 'module' && doc.modules) { ?>
47
+ <?js if (doc.description) { ?>
48
+ <div class="description">
49
+ <?js= doc.description ?>
50
+ </div>
51
+ <?js } ?>
52
+
53
+ <?js doc.modules.forEach(function(module) { ?>
54
+ <?js= self.partial('method.tmpl', module) ?>
55
+ <?js }) ?>
56
+ <?js } else if (doc.kind === 'class') { ?>
57
+ <?js= self.partial('method.tmpl', doc) ?>
58
+ <?js } else { ?>
59
+ <?js if (doc.description) { ?>
60
+ <div class="description">
61
+ <?js= doc.description ?>
62
+ </div>
63
+ <?js } ?>
64
+
65
+ <?js= self.partial('details.tmpl', doc) ?>
66
+
67
+ <?js if (doc.examples && doc.examples.length) { ?>
68
+ <h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
69
+ <?js= self.partial('examples.tmpl', doc.examples) ?>
70
+ <?js } ?>
71
+ <?js } ?>
72
+ </div>
73
+
74
+ <?js if (doc.augments && doc.augments.length) { ?>
75
+ <h3 class="subsection-title">Extends</h3>
76
+
77
+ <?js= self.partial('augments.tmpl', doc) ?>
78
+ <?js } ?>
79
+
80
+ <?js if (doc.requires && doc.requires.length) { ?>
81
+ <h3 class="subsection-title">Requires</h3>
82
+
83
+ <ul>
84
+ <?js doc.requires.forEach(function(r) { ?>
85
+ <li>
86
+ <?js= self.linkto(r, r) ?>
87
+ </li>
88
+ <?js }); ?>
89
+ </ul>
90
+ <?js } ?>
91
+
92
+ <?js
93
+ var classes = self.find({kind: 'class', memberof: doc.longname});
94
+ if (!isGlobalPage && classes && classes.length) {
95
+ ?>
96
+ <h3 class="subsection-title">Classes</h3>
97
+
98
+ <dl>
99
+ <?js classes.forEach(function(c) { ?>
100
+ <dt>
101
+ <?js= self.linkto(c.longname, c.name) ?>
102
+ </dt>
103
+ <dd>
104
+ <?js if (c.summary) { ?>
105
+ <?js= c.summary ?>
106
+ <?js } ?>
107
+ </dd>
108
+ <?js }); ?>
109
+ </dl>
110
+ <?js } ?>
111
+
112
+ <?js
113
+ var mixins = self.find({kind: 'mixin', memberof: doc.longname});
114
+
115
+ if (!isGlobalPage && mixins && mixins.length) {
116
+ ?>
117
+ <h3 class="subsection-title">Mixins</h3>
118
+
119
+ <dl>
120
+ <?js mixins.forEach(function(m) { ?>
121
+ <dt>
122
+ <?js= self.linkto(m.longname, m.name) ?>
123
+ </dt>
124
+ <dd>
125
+ <?js if (m.summary) { ?><?js= m.summary ?><?js } ?>
126
+ </dd>
127
+ <?js }); ?>
128
+ </dl>
129
+ <?js } ?>
130
+
131
+ <?js
132
+ var namespaces = self.find({kind: 'namespace', memberof: doc.longname});
133
+ if (!isGlobalPage && namespaces && namespaces.length) {
134
+ ?>
135
+ <h3 class="subsection-title">Namespaces</h3>
136
+
137
+ <dl>
138
+ <?js namespaces.forEach(function(n) { ?>
139
+ <dt>
140
+ <?js= self.linkto(n.longname, n.name) ?>
141
+ </dt>
142
+ <dd>
143
+ <?js if (n.summary) { ?><?js= n.summary ?><?js } ?>
144
+ </dd>
145
+ <?js }); ?>
146
+ </dl>
147
+ <?js } ?>
148
+
149
+ <?js
150
+ var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
151
+ var excludePattern = new RegExp(conf.source.excludePattern);
152
+
153
+ // symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
154
+ if (isGlobalPage && members && members.length && members.forEach) {
155
+ members = members.filter(function(m) {
156
+ return m.longname && m.longname.indexOf('module:') !== 0;
157
+ });
158
+ }
159
+
160
+ if (members && members.length && members.forEach) {
161
+ ?>
162
+ <h3 class="subsection-title">Members</h3>
163
+
164
+ <?js members.forEach(function(p) {
165
+ if (!conf.source.excludePattern || !p.comment.match(excludePattern)) { ?>
166
+ <?js= self.partial('members.tmpl', p) ?>
167
+ <?js } ?>
168
+ <?js }); ?>
169
+ <?js } ?>
170
+
171
+ <?js
172
+ var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
173
+ if (methods && methods.length && methods.forEach) {
174
+ ?>
175
+ <h3 class="subsection-title">Methods</h3>
176
+
177
+ <?js methods.forEach(function(m) { ?>
178
+ <?js= self.partial('method.tmpl', m) ?>
179
+ <?js }); ?>
180
+ <?js } ?>
181
+
182
+ <?js
183
+ var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
184
+
185
+ if (typedefs && typedefs.length && typedefs.forEach) {
186
+ ?>
187
+ <h3 class="subsection-title">Type Definitions</h3>
188
+
189
+ <?js typedefs.forEach(function(e) {
190
+ if (e.signature) {
191
+ ?>
192
+ <?js= self.partial('method.tmpl', e) ?>
193
+ <?js } else { ?>
194
+ <?js= self.partial('members.tmpl', e) ?>
195
+ <?js }
196
+ });
197
+ } ?>
198
+
199
+ <?js
200
+ var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
201
+ if (events && events.length && events.forEach) {
202
+ ?>
203
+ <h3 class="subsection-title">Events</h3>
204
+
205
+ <?js events.forEach(function(e) { ?>
206
+ <?js= self.partial('method.tmpl', e) ?>
207
+ <?js }); ?>
208
+ <?js } ?>
209
+ </article>
210
+ </section>
211
+
212
+ <?js } ?>
213
+ <?js }); ?>
@@ -0,0 +1,223 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ var defaultObjectClass = '';
5
+
6
+ // Check if the default value is an object or array; if so, apply code highlighting
7
+ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvaluetype === 'array')) {
8
+ data.defaultvalue = "<pre class=\"prettyprint\"><code>" + data.defaultvalue + "</code></pre>";
9
+ defaultObjectClass = ' class="object-value"';
10
+ }
11
+
12
+ var properties = data.properties;
13
+
14
+ if (properties && properties.length && properties.forEach) {
15
+ ?>
16
+
17
+ <h5 class="subsection-title">Properties:</h5>
18
+
19
+ <?js= this.partial('properties.tmpl', data) ?>
20
+
21
+ <?js } ?>
22
+
23
+ <dl class="details">
24
+
25
+ <?js if (data.version) {?>
26
+ <dt class="tag-version">Version:</dt>
27
+ <dd class="tag-version">
28
+ <ul class="dummy">
29
+ <li>
30
+ <?js= version ?>
31
+ </li>
32
+ </ul>
33
+ </dd>
34
+ <?js } ?>
35
+
36
+ <?js if (data.since) {?>
37
+ <dt class="tag-since">Since:</dt>
38
+ <dd class="tag-since">
39
+ <ul class="dummy">
40
+ <li>
41
+ <?js= since ?>
42
+ </li>
43
+ </ul>
44
+ </dd>
45
+ <?js } ?>
46
+
47
+ <?js if (data.inherited && data.inherits && !data.overrides) { ?>
48
+ <dt class="inherited-from">Inherited From:</dt>
49
+ <dd class="inherited-from">
50
+ <ul class="dummy">
51
+ <li>
52
+ <?js= this.linkto(data.inherits, this.htmlsafe(data.inherits)) ?>
53
+ </li>
54
+ </ul>
55
+ </dd>
56
+ <?js } ?>
57
+
58
+ <?js if (data.overrides) { ?>
59
+ <dt class="tag-overrides">Overrides:</dt>
60
+ <dd class="tag-overrides">
61
+ <ul class="dummy">
62
+ <li>
63
+ <?js= this.linkto(data.overrides, this.htmlsafe(data.overrides)) ?>
64
+ </li>
65
+ </ul>
66
+ </dd>
67
+ <?js } ?>
68
+
69
+ <?js if (data.implementations && data.implementations.length) { ?>
70
+ <dt class="implementations">Implementations:</dt>
71
+ <dd class="implementations">
72
+ <ul>
73
+ <?js data.implementations.forEach(function(impl) { ?>
74
+ <li>
75
+ <?js= self.linkto(impl, self.htmlsafe(impl)) ?>
76
+ </li>
77
+ <?js }); ?>
78
+ </ul>
79
+ </dd>
80
+ <?js } ?>
81
+
82
+ <?js if (data.implements && data.implements.length) { ?>
83
+ <dt class="implements">Implements:</dt>
84
+ <dd class="implements">
85
+ <ul>
86
+ <?js data.implements.forEach(function(impl) { ?>
87
+ <li><?js= self.linkto(impl, self.htmlsafe(impl)) ?></li>
88
+ <?js }); ?>
89
+ </ul>
90
+ </dd>
91
+ <?js } ?>
92
+
93
+ <?js if (data.mixes && data.mixes.length) { ?>
94
+ <dt class="mixes">Mixes In:</dt>
95
+
96
+ <dd class="mixes">
97
+ <ul>
98
+ <?js data.mixes.forEach(function(a) { ?>
99
+ <li>
100
+ <?js= self.linkto(a, a) ?>
101
+ </li>
102
+ <?js }); ?>
103
+ </ul>
104
+ </dd>
105
+ <?js } ?>
106
+
107
+ <?js if (data.deprecated) { ?>
108
+ <dt class="important tag-deprecated">Deprecated:</dt>
109
+ <?js
110
+ if (data.deprecated === true) { ?>
111
+ <dd class="yes-def tag-deprecated">
112
+ <ul class="dummy">
113
+ <li>Yes</li>
114
+ </ul>
115
+ </dd>
116
+ <?js } else { ?>
117
+ <dd>
118
+ <ul class="dummy">
119
+ <li>
120
+ <?js= data.deprecated ?>
121
+ </li>
122
+ </ul>
123
+ </dd>
124
+ <?js } ?>
125
+ <br>
126
+ <?js } ?>
127
+
128
+ <?js if (data.author && author.length) {?>
129
+ <dt class="tag-author">Author:</dt>
130
+ <dd class="tag-author">
131
+ <ul>
132
+ <?js author.forEach(function(a) { ?>
133
+ <li>
134
+ <?js= self.resolveAuthorLinks(a) ?>
135
+ </li>
136
+ <?js }); ?>
137
+ </ul>
138
+ </dd>
139
+ <?js } ?>
140
+
141
+ <?js if (data.copyright) {?>
142
+ <dt class="tag-copyright">Copyright:</dt>
143
+ <dd class="tag-copyright">
144
+ <ul class="dummy">
145
+ <li>
146
+ <?js= copyright ?>
147
+ </li>
148
+ </ul>
149
+ </dd>
150
+ <?js } ?>
151
+
152
+ <?js if (data.license) {?>
153
+ <dt class="tag-license">License:</dt>
154
+ <dd class="tag-license">
155
+ <ul class="dummy">
156
+ <li>
157
+ <?js= license ?>
158
+ </li>
159
+ </ul>
160
+ </dd>
161
+ <?js } ?>
162
+
163
+ <?js if (data.defaultvalue) {?>
164
+ <dt class="tag-default">Default Value:</dt>
165
+ <dd class="tag-default">
166
+ <ul class="dummy">
167
+ <li<?js= defaultObjectClass ?>>
168
+ <?js= data.defaultvalue ?>
169
+ </li>
170
+ </ul>
171
+ </dd>
172
+ <?js } ?>
173
+
174
+ <?js if (data.meta && self.outputSourceFiles) {?>
175
+ <dt class="tag-source">Source:</dt>
176
+ <dd class="tag-source">
177
+ <ul class="dummy">
178
+ <li>
179
+ <?js= self.linkto(meta.shortpath) ?>, <?js= self.linkto(meta.shortpath, 'line ' + meta.lineno, null, 'line' + meta.lineno) ?>
180
+ </li>
181
+ </ul>
182
+ </dd>
183
+ <?js } ?>
184
+
185
+ <?js if (data.tutorials && tutorials.length) {?>
186
+ <dt class="tag-tutorial">Tutorials:</dt>
187
+ <dd class="tag-tutorial">
188
+ <ul>
189
+ <?js tutorials.forEach(function(t) { ?>
190
+ <li>
191
+ <?js= self.tutoriallink(t) ?>
192
+ </li>
193
+ <?js }); ?>
194
+ </ul>
195
+ </dd>
196
+ <?js } ?>
197
+
198
+ <?js if (data.see && see.length) {?>
199
+ <dt class="tag-see">See:</dt>
200
+ <dd class="tag-see">
201
+ <ul>
202
+ <?js see.forEach(function(s) { ?>
203
+ <li>
204
+ <?js= self.linkto(s) ?>
205
+ </li>
206
+ <?js }); ?>
207
+ </ul>
208
+ </dd>
209
+ <?js } ?>
210
+
211
+ <?js if (data.todo && todo.length) {?>
212
+ <dt class="tag-todo">To Do:</dt>
213
+ <dd class="tag-todo">
214
+ <ul>
215
+ <?js todo.forEach(function(t) { ?>
216
+ <li>
217
+ <?js= t ?>
218
+ </li>
219
+ <?js }); ?>
220
+ </ul>
221
+ </dd>
222
+ <?js } ?>
223
+ </dl>
@@ -0,0 +1,2 @@
1
+ <?js var data = obj; ?>
2
+ <pre><code><?js= data ?></code></pre>
@@ -0,0 +1,14 @@
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+
5
+ data.forEach(function(example) {
6
+ if (example.caption) {
7
+ ?>
8
+ <p class="code-caption">
9
+ <?js= example.caption ?>
10
+ </p>
11
+ <?js } ?>
12
+
13
+ <pre class="prettyprint"><code><?js= self.htmlsafe(example.code) ?></code></pre>
14
+ <?js }); ?>