Skip to content

Commit

Permalink
Fix apidoc methods
Browse files Browse the repository at this point in the history
  • Loading branch information
shvelo committed Aug 30, 2016
1 parent 5445021 commit b98d7f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apidoc-template-bs3",
"version": "0.1.2",
"version": "0.2.0",
"description": "Bootstrap 3 template for apiDoc",
"main": "template/index.html",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1>{{article.groupTitle}}{{#if article.title}} - {{article.title}}{{/if}}</h1>
<p>{{{nl2br article.description}}}</p>
{{/if}}

<pre class="prettyprint language-html" data-type="{{toLowerCase article.type}}"><code>{{article.url}}</code></pre>
<pre data-type="{{toLowerCase article.type}}"><code><span class="typ">{{toUpperCase article.type}}</span> <span class="pln">{{article.url}}</span></code></pre>

{{#if article.permission}}
<p>
Expand Down
7 changes: 7 additions & 0 deletions template/utils/handlebars_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ define([
return (value && typeof value === 'string') ? value.toLowerCase() : '';
});

/**
*
*/
Handlebars.registerHelper('toUpperCase', function(value) {
return (value && typeof value === 'string') ? value.toUpperCase() : '';
});

/**
*
*/
Expand Down

0 comments on commit b98d7f7

Please sign in to comment.