Skip to content

Commit 469e6b4

Browse files
alan-agius4josmar-crwdstffng
authored andcommitted
fix(docs-infra): don't wrap subcommands in code element (angular#45343)
With this change we no longer wrap subcommands titles and sub navigation items in code element for nicer UI PR Close angular#45343
1 parent f6c4a69 commit 469e6b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aio/tools/transforms/templates/cli/cli-command.template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2 class="no-anchor">
2323
<p>This command has the following <a href="#{$ doc.name $}-commands">commands</a>:<p>
2424
<ul>
2525
{% for subcommand in doc.subcommands %}
26-
<li><code class="no-auto-link"><a class="code-anchor" href="#{$ subcommand.name $}-command">{$ subcommand.name $}</a></code></li>
26+
<li><a class="code-anchor" href="#{$ subcommand.name $}-command">{$ subcommand.name $}</a></li>
2727
{% endfor %}
2828
</ul>
2929
{% endif %}

aio/tools/transforms/templates/cli/lib/cli.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
{% if container.subcommands.length %}
9191
<h2><a id="{$ container.name $}-commands"></a>{$ container.name | title $} commands</h2>
9292
{% for subcommand in container.subcommands %}
93-
<h3><code class="no-auto-link"><a id="{$ subcommand.name $}-command"></a>{$ subcommand.name $}</code></h3>
93+
<h3><a id="{$ subcommand.name $}-command"></a>{$ subcommand.name $}</h3>
9494
{$ renderSyntax(subcommand, name) $}
9595
{$ subcommand.shortDescription | marked $}
9696
{# for now we assume that commands do not have further sub-commands #}

0 commit comments

Comments
 (0)