From b2e902deb4cbc92070c31c21027fa86c829ba488 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 18 Jan 2018 17:01:21 +0200 Subject: [PATCH] fix(aio): fix code highlight in API docs templates (#21630) Fixes #21108 PR Close #21630 --- aio/tools/transforms/templates/api/includes/annotations.html | 2 +- aio/tools/transforms/templates/api/includes/metadata.html | 2 +- aio/tools/transforms/templates/api/lib/memberHelpers.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/tools/transforms/templates/api/includes/annotations.html b/aio/tools/transforms/templates/api/includes/annotations.html index 51cf2fe7d1..0f5ad42332 100644 --- a/aio/tools/transforms/templates/api/includes/annotations.html +++ b/aio/tools/transforms/templates/api/includes/annotations.html @@ -2,7 +2,7 @@

Annotations

{%- for decorator in doc.decorators %} - @{$ decorator.name $}({$ decorator.arguments $}) + @{$ decorator.name $}({$ decorator.arguments $}) {% if not decorator.notYetDocumented %}{$ decorator.description | marked $}{% endif %} {% endfor %}
diff --git a/aio/tools/transforms/templates/api/includes/metadata.html b/aio/tools/transforms/templates/api/includes/metadata.html index 1746529d4f..8e1a0f953a 100644 --- a/aio/tools/transforms/templates/api/includes/metadata.html +++ b/aio/tools/transforms/templates/api/includes/metadata.html @@ -4,7 +4,7 @@ {% for metadata in doc.members %}{% if not metadata.internal %}
- {$ metadata.name $}{$ params.paramList(metadata.parameters) | trim $}{$ params.returnType(metadata.type) $} + {$ metadata.name $}{$ params.paramList(metadata.parameters) | trim $}{$ params.returnType(metadata.type) $} {%- if not metadata.notYetDocumented %}{$ metadata.description | marked $}{% endif -%}
{% if not loop.last %}
{% endif %} diff --git a/aio/tools/transforms/templates/api/lib/memberHelpers.html b/aio/tools/transforms/templates/api/lib/memberHelpers.html index 23ccbaed13..09a2dcb6e1 100644 --- a/aio/tools/transforms/templates/api/lib/memberHelpers.html +++ b/aio/tools/transforms/templates/api/lib/memberHelpers.html @@ -29,7 +29,7 @@ {%- macro renderMemberDetail(member, cssClass) -%}
- {$ renderMember(member) $} + {$ renderMember(member) $} {%- if not member.notYetDocumented %} {$ member.description | marked $} {% endif -%} @@ -57,4 +57,4 @@ {% endif %}{% endfor %} {% endif %} -{% endmacro %} \ No newline at end of file +{% endmacro %}