-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(aio): do not render "constructor()" heading in API docs #22380
build(aio): do not render "constructor()" heading in API docs #22380
Conversation
You can preview 5faca5a at https://pr22380-5faca5a.ngbuilds.io/. |
@@ -93,7 +93,7 @@ <h4 class="no-anchor">Throws</h4> | |||
{%- macro renderMethodDetails(methods, containerClass, itemClass, headingText) -%} | |||
{% if methods.length %} | |||
<section class="{$ containerClass $}"> | |||
<h2>{$ headingText $}</h2> | |||
{% if headingText %}<h2>{$ headingText $}</h2>{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using this macro without headingText
? This change doesn't seem related to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, sorry that slipped through from my playing around.
{% if doc.constructorDoc %}{$ memberHelpers.renderMethodDetail(doc.constructorDoc, 'constructor') $}{% endif %} | ||
{% if doc.constructorDoc %} | ||
<h2>Constructor</h2> | ||
{$ memberHelpers.renderMethodDetail(doc.constructorDoc) $}{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should still pass the cssClass as the second parameter too.
You can preview 87aa27b at https://pr22380-87aa27b.ngbuilds.io/. |
87aa27b
to
f29c759
Compare
You can preview f29c759 at https://pr22380-f29c759.ngbuilds.io/. |
f29c759
to
846e3af
Compare
You can preview 846e3af at https://pr22380-846e3af.ngbuilds.io/. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Closes #22363