docs(api): fixes broken api docs post mat upgrade (#7457)

This commit is contained in:
Austin
2017-10-02 19:29:37 -05:00
committed by Kara
parent f4673a59af
commit b6c0d2004c
3 changed files with 8 additions and 8 deletions
-4
View File
@@ -90,11 +90,7 @@ export class MatDrawerContent implements AfterContentInit {
/**
* <mat-drawer> component.
*
* This component corresponds to a drawer that can be opened on the drawer container.
*
* Please refer to README.md for examples on how to use it.
*/
@Component({
moduleId: module.id,
+2 -1
View File
@@ -220,10 +220,11 @@ function getDirectiveOutputAlias(doc) {
function getDirectiveSelectors(classDoc) {
const directiveSelectors = getMetadataProperty(classDoc, 'selector');
if (directiveSelectors) {
// Filter blacklisted selectors and remove line-breaks in resolved selectors.
return directiveSelectors.replace(/[\r\n]/g, '').split(/\s*,\s*/)
.filter(s => s !== '' && !s.includes('mat') && !SELECTOR_BLACKLIST.has(s));
.filter(s => s !== '' && !s.includes('md') && !SELECTOR_BLACKLIST.has(s));
}
}
+6 -3
View File
@@ -1,15 +1,18 @@
<h4 class="docs-api-h4 docs-api-class-name">
<code>{$ class.name $}</code>
</h4>
<p class="docs-api-class-description">{$ class.description | marked | safe $}</p>
{%- if class.description -%}
<p class="docs-api-class-description">{$ class.description | safe $}</p>
{%- endif -%}
{%- if class.directiveSelectors -%}
<div class="docs-api-directive-selectors">
<p class="docs-api-directive-selectors">
<span class="docs-api-class-selector-label">Selector:</span>
{% for selector in class.directiveSelectors %}
<span class="docs-api-class-selector-name">{$ selector $}</span>
{% endfor %}
</div>
</p>
{%- endif -%}
{%- if class.directiveExportAs -%}