@@ -2,6 +2,7 @@ import {Package} from 'dgeni';
22import { DocsPrivateFilter } from './processors/docs-private-filter' ;
33import { Categorizer } from './processors/categorizer' ;
44import { FilterExportAliases } from './processors/filter-export-aliases' ;
5+ import { MergeInheritedProperties } from './processors/merge-inherited-properties' ;
56import { ComponentGrouper } from './processors/component-grouper' ;
67import { ReadTypeScriptModules } from 'dgeni-packages/typescript/processors/readTypeScriptModules' ;
78import { TsParser } from 'dgeni-packages/typescript/services/TsParser' ;
@@ -51,6 +52,9 @@ export const apiDocsPackage = new Package('material2-api-docs', dgeniPackageDeps
5152// Processor that filters out aliased exports that should not be shown in the docs.
5253apiDocsPackage . processor ( new FilterExportAliases ( ) ) ;
5354
55+ // Processor that merges inherited properties of a class with the class doc.
56+ apiDocsPackage . processor ( new MergeInheritedProperties ( ) ) ;
57+
5458// Processor that filters out symbols that should not be shown in the docs.
5559apiDocsPackage . processor ( new DocsPrivateFilter ( ) ) ;
5660
@@ -99,8 +103,14 @@ apiDocsPackage.config((readTypeScriptModules: ReadTypeScriptModules, tsParser: T
99103 typescriptPathMap [ `@angular/cdk/${ packageName } ` ] = [ `./cdk/${ packageName } /index.ts` ] ;
100104 } ) ;
101105
102- tsParser . options . baseUrl = sourceDir ;
106+ materialPackages . forEach ( packageName => {
107+ typescriptPathMap [ `@angular/material/${ packageName } ` ] = [ `./lib/${ packageName } /index.ts` ] ;
108+ } ) ;
109+
110+ // Add proper path mappings to the TSParser service of Dgeni. This ensures that properties
111+ // from mixins (e.g. color, disabled) are showing up properly in the docs.
103112 tsParser . options . paths = typescriptPathMap ;
113+ tsParser . options . baseUrl = sourceDir ;
104114
105115 // Entry points for docs generation. All publically exported symbols found through these
106116 // files will have docs generated.
0 commit comments