File tree Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ var path = require("path");
5
5
/**
6
6
* @module {function} bit-docs-js
7
7
* @parent plugins
8
+ * @group bit-docs-js/static static
8
9
*
9
10
* @description A collection of tags, templates, and basic styles for JavaScript applications.
10
11
*
@@ -13,12 +14,16 @@ var path = require("path");
13
14
* TBD
14
15
*/
15
16
module . exports = function ( bitDocs ) {
17
+ var pkg = require ( "./package.json" ) ;
18
+ var dependencies = { } ;
19
+ dependencies [ pkg . name ] = pkg . version ;
20
+
16
21
// register your tags
17
22
bitDocs . register ( "tags" , tags ) ;
18
23
bitDocs . register ( "processor" , processJavaScript ) ;
19
24
20
25
bitDocs . register ( "html" , {
21
- templates : path . join ( __dirname , "templates" )
26
+ templates : path . join ( __dirname , "templates" ) ,
27
+ dependencies : dependencies
22
28
} ) ;
23
-
24
29
} ;
Original file line number Diff line number Diff line change
1
+ require ( './static/styles/styles.less' ) ;
Original file line number Diff line number Diff line change
1
+ @import " locate://bit-docs-site/styles/variables.less" ;
2
+
3
+ /* *
4
+ * @parent bit-docs-js/static
5
+ * @module bit-docs-js/static/styles/signature.less
6
+ *
7
+ * @description Base styles for signature tag.
8
+ *
9
+ * @body
10
+ *
11
+ * Keep spacing consistent for signature options and/or parameters when the
12
+ * description text ends in a paragraph that has a bottom margin, or ends in
13
+ * another element without a default bottom margin (such as an HTML list).
14
+ *
15
+ * Uses `>` selectors to scope only those `<ul>`/`<ol>` added by the template.
16
+ *
17
+ * Paragraphs have a default bottom margin of 1em, so this collapses with that.
18
+ */
19
+ .signature {
20
+ .options , .parameters {
21
+ & >*> li {
22
+ margin-bottom : 1em ;
23
+ }
24
+ }
25
+ }
Original file line number Diff line number Diff line change 35
35
{ {#returns} }
36
36
<div class =" returns" >
37
37
<h3 class =" returns-title" >Returns</h3 >
38
- < p > { {{makeReturn} }}: { {{makeHtml (makeLinks description)} }}</ p >
38
+ { {{makeReturn} }}: { {{makeHtml (makeLinks description)} }}
39
39
</div >
40
40
{ {/returns} }
41
41
You can’t perform that action at this time.
0 commit comments