fix(docs-infra): add guard to not render anchor link for private api (#38589)

This commit adds a guard that prevents rendering anchor links for
private api's.

Closes #38564

PR Close #38589
This commit is contained in:
Sonu Kapoor 2020-08-26 09:47:46 -04:00 committed by Joey Perrott
parent fb06903237
commit 0681a20d28
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
{%- macro renderHeritage(exportDoc) -%} {%- macro renderHeritage(exportDoc) -%}
{%- if exportDoc.extendsClauses.length %} extends {% for clause in exportDoc.extendsClauses -%} {%- if exportDoc.extendsClauses.length %} extends {% for clause in exportDoc.extendsClauses -%}
<a class="code-anchor" href="{$ clause.doc.path $}">{$ clause.text $}</a>{% if not loop.last %}, {% endif -%} {% if clause.doc.path %}<a class="code-anchor" href="{$ clause.doc.path $}">{$ clause.text $}</a>{% else %}{$ clause.text $}{% endif %}{% if not loop.last %}, {% endif -%}
{% endfor %}{% endif %} {% endfor %}{% endif %}
{%- if exportDoc.implementsClauses.length %} implements {% for clause in exportDoc.implementsClauses -%} {%- if exportDoc.implementsClauses.length %} implements {% for clause in exportDoc.implementsClauses -%}
<a class="code-anchor" href="{$ clause.doc.path $}">{$ clause.text $}</a>{% if not loop.last %}, {% endif -%} <a class="code-anchor" href="{$ clause.doc.path $}">{$ clause.text $}</a>{% if not loop.last %}, {% endif -%}