angular/aio/tools/transforms/templates/cli/cli-command.template.html
Alan Agius 8f06fa3b20 feat(docs-infra): update CLI templates to match changes with new parser and folder structure (#45225)
The underlying parser that the CLI uses changed which caused minor changes in the generated JSON helps especially for subcommands.

The folder structure of the Angular CLI repo also changed slightly.

More context: https://github.com/angular/angular-cli/pull/22778

PR Close #45225
2022-03-10 15:51:18 -08:00

35 lines
1.1 KiB
HTML

{% import 'lib/cli.html' as cli %}
{% import "../lib/githubLinks.html" as github -%}
<article>
{% include 'include/cli-breadcrumb.html' %}
{% include 'include/cli-header.html' %}
<aio-toc class="embedded"></aio-toc>
<div class="cli-body">
{$ doc.shortDescription | marked $}
{$ cli.renderSyntax(doc) $}
{% if doc.longDescription.length %}
<h2 class="no-anchor">
{$ github.githubLinks(doc.longDescriptionDoc, cliVersionInfo) $}
Description
</h2>
{$ doc.longDescription | marked $}
{% endif%}
{% if doc.subcommands.length %}
<p>This command has the following <a href="#{$ doc.name $}-commands">commands</a>:<p>
<ul>
{% for subcommand in doc.subcommands %}
<li><code class="no-auto-link"><a class="code-anchor" href="#{$ subcommand.name $}-command">{$ subcommand.name $}</a></code></li>
{% endfor %}
</ul>
{% endif %}
{$ cli.renderArguments(doc.positionalOptions, 2) $}
{$ cli.renderNamedOptions(doc.namedOptions, 2) $}
{$ cli.renderSubcommands(doc) $}
</div>
</article>