Files
meteor/docs/client/api-box.html
Ben Newman 9d6927bb02 Revert "Fix branch in GitHub URLs for documentation apiAutoBoxes."
We push to the master branch before deploying docs, so this was correct to
begin with (in production if not in development).

This reverts commit a8d2aa5fd8.

Also reverting commit 7cf025c8eb, which was
pushed by accident.
2015-08-10 16:32:46 -04:00

80 lines
1.7 KiB
HTML

<template name="apiBoxTitle">
<h3 id="{{id}}" class="api-title">
<div class="locus">
{{locus}}
</div>
<a class="name selflink" href="{{link}}">{{{name}}}</a>
{{#if fullApi}}
{{#if filepath}}
<a class="src-code" href="https://github.com/meteor/meteor/blob/master/packages/{{filepath}}#L{{lineno}}" target="_blank">
{{filepath}}, line {{lineno}}
</a>
{{/if}}
{{/if}}
</h3>
</template>
<template name="autoApiBox">
{{#with apiData this}}
<div class="api {{bare}} new-api-box">
{{> apiBoxTitle name=signature locus=locus id=id filepath=filepath lineno=lineno}}
<div class="desc">
{{#markdown}}{{summary}}{{/markdown}}
</div>
{{#if paramsNoOptions}}
<h4>Arguments</h4>
<dl class="args">
{{#each paramsNoOptions}}
<dt>
<span class="name">{{name}}</span>
<span class="type">{{{typeNames type.names}}}</span>
</dt>
<dd>
{{{description}}}
</dd>
{{/each}}
</dl>
{{/if}}
{{#if options}}
<h4>Options</h4>
<dl class="args">
{{#each options}}
<dt>
<span class="name">{{name}}</span>
<span class="type">{{{typeNames type.names}}}</span>
</dt>
<dd>
{{{description}}}
</dd>
{{/each}}
</dl>
{{/if}}
{{#if UI.contentBlock}}
{{#markdown}}{{> UI.contentBlock}}{{/markdown}}
{{/if}}
</div>
{{/with}}
</template>
<template name="api_box_args">
<dl class="args">
{{#each this}}
<dt><span class="name">{{{name}}}</span>
<span class="type">
{{#if type_link}}
<a href="#{{type_link}}">{{{type}}}</a>
{{else}}
{{{type}}}
{{/if}}
</span></dt>
<dd>{{#markdown}}{{{descr}}}{{/markdown}}</dd>
{{/each}}
</dl>
</template>