diff --git a/tools/dgeni/processors/categorizer.js b/tools/dgeni/processors/categorizer.js index 5aaec49b69b0..b515e5a026c5 100644 --- a/tools/dgeni/processors/categorizer.js +++ b/tools/dgeni/processors/categorizer.js @@ -68,14 +68,11 @@ module.exports = function categorizer() { } /** - * Decorates public exposed docs. Creates a property with CSS classes that will be - * added to the template. + * Decorates public exposed docs. Creates a property on the doc that indicates whether + * the item is deprecated or not. **/ function decoratePublicDoc(doc) { - // Specific classes that will can added to the Dgeni doc template. - doc.docClasses = [ - isDeprecatedDoc(doc) ? 'docs-api-deprecated' : '' - ].join(' '); + doc.isDeprecated = isDeprecatedDoc(doc); } }; diff --git a/tools/dgeni/templates/class.template.html b/tools/dgeni/templates/class.template.html index bf9ad46e0a88..f23c5d4e4d86 100644 --- a/tools/dgeni/templates/class.template.html +++ b/tools/dgeni/templates/class.template.html @@ -1,15 +1,17 @@ -
{$ class.name $}
- {$ class.description $}
+{$ class.name $}
+{$ class.description $}
- {%- if class.directiveExportAs -%} - Exported as: - {$ class.directiveExportAs $} - {%- endif -%} +{%- if class.directiveExportAs -%} +Exported as: +{$ class.directiveExportAs $} +{%- endif -%} - {$ propertyList(class.properties) $} +{%- if class.isDeprecated -%} +{$ method.name $} | +
+ {%- if method.isDeprecated -%}
+ Deprecated
+ {%- endif -%}
+ {$ method.name $}
+ |
||
---|---|---|---|
{%- if property.isDirectiveInput -%}
@@ -18,6 +18,9 @@
{%- endif -%}
{%- endif -%}
+ {%- if property.isDeprecated -%}
+ Deprecated
+ {%- endif -%}
{$ property.name $} |