Skip to content

Commit b6c0d20

Browse files
amcdnlkara
authored andcommitted
docs(api): fixes broken api docs post mat upgrade (#7457)
1 parent f4673a5 commit b6c0d20

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/lib/sidenav/drawer.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ export class MatDrawerContent implements AfterContentInit {
9090

9191

9292
/**
93-
* <mat-drawer> component.
94-
*
9593
* This component corresponds to a drawer that can be opened on the drawer container.
96-
*
97-
* Please refer to README.md for examples on how to use it.
9894
*/
9995
@Component({
10096
moduleId: module.id,

tools/dgeni/processors/categorizer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,11 @@ function getDirectiveOutputAlias(doc) {
220220
function getDirectiveSelectors(classDoc) {
221221
const directiveSelectors = getMetadataProperty(classDoc, 'selector');
222222

223+
223224
if (directiveSelectors) {
224225
// Filter blacklisted selectors and remove line-breaks in resolved selectors.
225226
return directiveSelectors.replace(/[\r\n]/g, '').split(/\s*,\s*/)
226-
.filter(s => s !== '' && !s.includes('mat') && !SELECTOR_BLACKLIST.has(s));
227+
.filter(s => s !== '' && !s.includes('md') && !SELECTOR_BLACKLIST.has(s));
227228
}
228229
}
229230

tools/dgeni/templates/class.template.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<h4 class="docs-api-h4 docs-api-class-name">
22
<code>{$ class.name $}</code>
33
</h4>
4-
<p class="docs-api-class-description">{$ class.description | marked | safe $}</p>
4+
5+
{%- if class.description -%}
6+
<p class="docs-api-class-description">{$ class.description | safe $}</p>
7+
{%- endif -%}
58

69
{%- if class.directiveSelectors -%}
7-
<div class="docs-api-directive-selectors">
10+
<p class="docs-api-directive-selectors">
811
<span class="docs-api-class-selector-label">Selector:</span>
912
{% for selector in class.directiveSelectors %}
1013
<span class="docs-api-class-selector-name">{$ selector $}</span>
1114
{% endfor %}
12-
</div>
15+
</p>
1316
{%- endif -%}
1417

1518
{%- if class.directiveExportAs -%}

0 commit comments

Comments
 (0)