From ce431f279ea068a10929da9cb4bf33f042a83fcb Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Tue, 28 Apr 2015 14:47:17 +0100 Subject: [PATCH] chore(doc-gen): don't show private class members in jade templates Closes #1366 --- docs/angular.io-package/templates/class.template.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/angular.io-package/templates/class.template.html b/docs/angular.io-package/templates/class.template.html index cd31e928a3..ee4878b56a 100644 --- a/docs/angular.io-package/templates/class.template.html +++ b/docs/angular.io-package/templates/class.template.html @@ -28,7 +28,7 @@ p.location-badge. {% endif -%} -{%- for member in doc.members %} +{%- for member in doc.members %}{% if not member.private %} .l-sub-section h3 {$ member.name $} @@ -38,11 +38,12 @@ p.location-badge. {$ member.name $}{$ paramList(member.params) | indent(4, true) | trim $} {% endif %} :markdown +} {$ member.description | indent(6, true) | replace('## Example', '') | replace('# Example', '') $} -{% endfor %} +{% endif %}{% endfor %} {%- endif -%} {% endblock %} \ No newline at end of file