From 9c01ca42d3f692884cc97d48b68aca5e513f9f5d Mon Sep 17 00:00:00 2001 From: ajitsinghkaler Date: Thu, 13 Feb 2020 23:39:15 +0530 Subject: [PATCH] feat(docs-infra): add entry-point label on api endpoint docs (#35427) On API docs pages for Angular packages (e.g. https://angular.io/api/common), we show all primary and secondary entry-points. Following a link to one of the secondary entry-points (e.g. https://angular.io/api/common/http), navigates the docs page for the secondary entry-point, where it is incorrectly (and misleadingly) labelled as PACKAGE and not as an entry-point. Implemented a new ENTRY-POINT label and add support for correctly differentiating between entry-points and packages. Fixes #34081 PR Close #35427 --- aio/tools/transforms/templates/api/package.template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/tools/transforms/templates/api/package.template.html b/aio/tools/transforms/templates/api/package.template.html index 7b9f0fcdf1..22e902b147 100644 --- a/aio/tools/transforms/templates/api/package.template.html +++ b/aio/tools/transforms/templates/api/package.template.html @@ -23,7 +23,7 @@ {% block header %}

{$ doc.name $}

- + {% if doc.isPrimaryPackage %}{% else %}{% endif %} {% if doc.packageDeprecated or (not doc.isPrimaryPackage and doc.deprecated !== undefined) %}{% endif %} {% if doc.security !== undefined %}{% endif %} {% if doc.pipeOptions.pure === 'false' %}{% endif %}