Skip to content

Commit

Permalink
docs: fix rendering parameters (#6761)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakovljevic-mladen authored Jan 13, 2022
1 parent 7b4e254 commit 8c9a99a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h4>Deprecation Notes</h4>
</div>{% endif %}

<h4 class="no-anchor">Parameters</h4>
{$ params.renderParameters(overload.parameterDocs, cssClass + '-parameters', cssClass + '-parameter') $}
{$ params.renderParameters(overload.parameterDocs, cssClass + '-parameters', cssClass + '-parameter', true) $}

{% if overload.type or overload.returns.type %}
<h4 class="no-anchor">Returns</h4>
Expand Down
7 changes: 5 additions & 2 deletions docs_app/tools/transforms/templates/api/lib/paramList.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
<tbody>
{% for parameter in parameters %}
<tr class="{$ parameterClass $}">
<td class="param-name"><a id="{$ parameter.anchor $}"></a>{$ parameter.name $}</td>
<td class="param-name">
<a id="{$ parameter.anchor or parameter.name $}"></a>
<code>{$ parameter.name $}</code>
</td>
{% if showType %}<td class="param-type"><code>{$ parameter.type $}</code></td>{% endif %}
<td class="param-description">
{% marked %}
Expand All @@ -34,4 +37,4 @@
{%- else -%}
<p>There are no parameters.</p>
{%- endif -%}
{%- endmacro -%}
{%- endmacro -%}

0 comments on commit 8c9a99a

Please sign in to comment.