From 07509da78d50402549a0e0103605335663155203 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Tue, 23 Oct 2018 11:10:59 +0100 Subject: [PATCH] build(docs-infra): ensure that CLI code blocks are not auto-linked (#26675) Some of the text in CLI API docs were being auto-linked to API pages. This was not correct, and in fact these blocks should not have any auto links to Angular API at all. Closes #26570 PR Close #26675 --- .../templates/cli/cli-container.template.html | 4 ++-- aio/tools/transforms/templates/cli/lib/cli.html | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/aio/tools/transforms/templates/cli/cli-container.template.html b/aio/tools/transforms/templates/cli/cli-container.template.html index 654ba52903..40162b0451 100644 --- a/aio/tools/transforms/templates/cli/cli-container.template.html +++ b/aio/tools/transforms/templates/cli/cli-container.template.html @@ -17,8 +17,8 @@ {% for command in doc.commands %} - {$ command.name $} - {% for alias in command.commandAliases %}{$ alias $} {% endfor %} + {$ command.name $} + {% for alias in command.commandAliases %}{$ alias $} {% endfor %} {$ command.description | marked $} {% endfor %} diff --git a/aio/tools/transforms/templates/cli/lib/cli.html b/aio/tools/transforms/templates/cli/lib/cli.html index b95313895f..a010777f4d 100644 --- a/aio/tools/transforms/templates/cli/lib/cli.html +++ b/aio/tools/transforms/templates/cli/lib/cli.html @@ -1,6 +1,6 @@ {% macro renderSyntax(container, prefix) -%} {% for name in container.names %} -ng {%if prefix %}{$ prefix $} {% endif %}{$ name $} +ng {%if prefix %}{$ prefix $} {% endif %}{$ name $} {%- for arg in container.positionalOptions %} <{$ arg.name $}>{% endfor %} {%- if container.namedOptions.length %} [options]{% endif -%} @@ -20,14 +20,14 @@ {% for option in arguments %} - <{$ option.name $}> + <{$ option.name $}> {$ option.description | marked $} {% if option.subcommands.length -%}

This option can take one of the following sub-commands:

{%- endif %} @@ -53,11 +53,11 @@ {% for option in options %} - {$ renderOption(option.name, option.type, option.default, option.enum) $} + {$ renderOption(option.name, option.type, option.default, option.enum) $} {$ option.description | marked $} - {% if option.default !== undefined %}

Default: {$ option.default $}

{% endif %} + {% if option.default !== undefined %}

Default: {$ option.default $}

{% endif %} {% if option.aliases.length %}

Aliases: {% for alias in option.aliases %}{$ renderOptionName(alias) $}{% if not loop.last %}, {% endif %}{% endfor %}

{% endif %} @@ -92,7 +92,7 @@ {% for command in container.positionalOptions %}{% if command.subcommands.length %}

{$ command.name | title $} commands

{% for subcommand in command.subcommands %} -

{$ subcommand.name $}

+

{$ subcommand.name $}

{% for name in container.names %} {$ renderSyntax(subcommand, name) $} {% endfor %}