Skip to content

Commit e08208b

Browse files
committed
Added private method labels.
Moved toggles into column.
1 parent 8ef5c74 commit e08208b

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

templates/bootstrap.hbs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@
5959

6060
<div class="container">
6161

62-
<div class="page-header">
62+
<div class="row page-header">
63+
64+
<div class="pull-right col-md-3">
6365

64-
<div class="pull-right">
6566
<div>
6667
<label>
6768
<input type="checkbox" name="toggle-code" class="toggle-code-blocks">
@@ -74,9 +75,14 @@
7475
Toggle Private Methods/Function
7576
</label>
7677
</div>
78+
7779
</div>
7880

79-
<h1>{{title}}{{#if description}} <small>{{description}}</small>{{/if}}</h1>
81+
<div class="col-md-9">
82+
83+
<h1>{{title}}{{#if description}} <small>{{description}}</small>{{/if}}</h1>
84+
85+
</div>
8086

8187
</div>
8288

@@ -120,6 +126,9 @@
120126

121127
<h2 id="{{formatId ctx.string}}">
122128
<a href="#{{formatId ctx.string}}" class="permalink">#</a> {{formatName ctx.string}}
129+
{{#if isPrivate}}
130+
<small>private method</small>
131+
{{/if}}
123132
</h2>
124133

125134
{{{description.summary}}}

templates/markdown.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{{registerContext this}}
1010

11-
##{{formatName ctx.string}}
11+
##{{formatName ctx.string}} {{#if isPrivate}} <small><i>private method<i></small>{{/if}}
1212
{{{description.summary}}}
1313

1414
{{#each tags}}{{#ifCond type "param"}}
@@ -20,7 +20,7 @@
2020
###Parameters
2121

2222
{{#each tags}}{{#ifCond type "param"}}
23-
- **{{name}}** {{#each types}}`{{.}}`{{/each}} {{#if optional}}_Optional_{{/if}} {{{description}}}
23+
- **{{name}}** {{#each types}}`{{.}}` {{/each}} {{#if optional}}_Optional_{{/if}} {{{description}}}
2424
{{/ifCond}}{{/each}}
2525

2626
{{/if}}
@@ -34,7 +34,7 @@
3434
###Properties
3535

3636
{{#each tags}}{{#ifCond type "property"}}
37-
- **{{name}}** {{#each types}}`{{.}}`{{/each}} {{#if optional}}_Optional_{{/if}} {{{description}}}
37+
- **{{name}}** {{#each types}}`{{.}}` {{/each}} {{#if optional}}_Optional_{{/if}} {{{description}}}
3838
{{/ifCond}}{{/each}}
3939

4040
{{/if}}

0 commit comments

Comments
 (0)