Skip to content

Commit 3626bde

Browse files
authored
Merge pull request #47 from bit-docs/new-functionality
making signatures work
2 parents a095f73 + 494f9b7 commit 3626bde

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

build/make_default_helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ module.exports = function(docMap, config, getCurrent, Handlebars){
224224
return "<!--####################################################################\n" +
225225
"\tTHIS IS A GENERATED FILE -- ANY CHANGES MADE WILL BE OVERWRITTEN\n\n" +
226226
'\tINSTEAD CHANGE:\n' +
227-
"\tsource: " + (current.src ? current.src.path : 'unknown') +
227+
"\tsource: " + (current && current.src && current.src.path ? current.src.path : 'unknown') +
228228
(current.type ? '\n\t@' + current.type + " " + current.name : '') +
229229
"\n######################################################################## -->";
230230
},

site/default/static/styles/styles.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ header, footer {
9090

9191
.main:extend(.container) {
9292
overflow-x: hidden; // fix to hide <pre> code overflow
93+
94+
// Collapse <p> for parameters, returns, and non-nested options
95+
.parameters, .returns, div.options {
96+
margin-bottom: 1em;
97+
98+
p:first-of-type {
99+
display: inline;
100+
101+
& + * {
102+
margin-top: 1em;
103+
}
104+
}
105+
}
93106
}
94107
}
95108

site/default/templates/layout.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<html lang="en">
44
<head>
55
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
67
<title>{{getTitle}}</title>
78
{{^devBuild}}
89
<link rel="stylesheet" type="text/css" href="{{pathToDest}}/static/bundles/bit-docs-site/static.css">
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<nav class="sidebar">
22
{{#with (getCurrentTree)}}
3+
{{#if children.length}}
4+
<ul>
5+
<li class="">
6+
<a class="home" href="{{urlTo 'BitDocs'}}" title="Home">
7+
Home
8+
</a>
9+
</li>
10+
</ul>
11+
{{/if}}
312
{{>menu.mustache}}
413
{{/with}}
514
</nav>

0 commit comments

Comments
 (0)