angular/aio/tools/transforms/templates/cli/cli-container.template.html
George Kalpakas 09ceb4ea64 fix(docs-infra): correctly populate "Description" column in CLI command overview (#46502)
Previously, the "Description" column of the CLI command overview section
was populated based on the CLI command docs' `description` property.
Since #45225, the short description of CLI commands is stored in the
`shortDescription` property.

This commit restores the content of the "Description" column by using
the correct property to populate it.

Fixes #46489

PR Close #46502
2022-06-27 10:50:32 -07:00

27 lines
704 B
HTML

{% extends 'content.template.html' -%}
{% block content %}
<div class="content">
{$ doc.description | marked $}
</div>
<h2>Command Overview</h2>
<table class="is-full-width list-table property-table">
<thead>
<tr>
<th>Command</th>
<th>Alias</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for command in doc.commands %}
<tr>
<td><a class="code-anchor" href="{$ command.path $}"><code class="no-auto-link">{$ command.name $}</code></a></td>
<td>{% for alias in command.commandAliases %}<code class="no-auto-link">{$ alias $} </code>{% endfor %}</td>
<td>{$ command.shortDescription | marked $}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}