From 69696c3b60981c0d408414a84cd856dcba4f9e9e Mon Sep 17 00:00:00 2001 From: Austin Date: Wed, 11 Oct 2017 09:17:50 -0500 Subject: [PATCH 1/2] chore(docs): adds types column and null checks for description --- tools/dgeni/templates/method.template.html | 2 ++ tools/dgeni/templates/property-list.template.html | 1 + tools/dgeni/templates/property.template.html | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/dgeni/templates/method.template.html b/tools/dgeni/templates/method.template.html index 50b43d1223e6..8848b3c879c4 100644 --- a/tools/dgeni/templates/method.template.html +++ b/tools/dgeni/templates/method.template.html @@ -9,11 +9,13 @@ + {%- if method.description -%} {$ method.description | marked | safe $} + {%- endif -%} {%- if method.params.length -%} diff --git a/tools/dgeni/templates/property-list.template.html b/tools/dgeni/templates/property-list.template.html index 0a54b03a629d..95fea6906a42 100644 --- a/tools/dgeni/templates/property-list.template.html +++ b/tools/dgeni/templates/property-list.template.html @@ -3,6 +3,7 @@
Properties
+ {% for p in propertyList %} diff --git a/tools/dgeni/templates/property.template.html b/tools/dgeni/templates/property.template.html index fd539e9ea11a..4374d5d29fc0 100644 --- a/tools/dgeni/templates/property.template.html +++ b/tools/dgeni/templates/property.template.html @@ -25,7 +25,9 @@

{$ property.name $}

- {$ property.type $} + + From cc295e10040d140dcdb42aa973198cda1cbf9900 Mon Sep 17 00:00:00 2001 From: Austin Date: Mon, 16 Oct 2017 10:06:51 -0500 Subject: [PATCH 2/2] chore(nit): update per pr feedback --- tools/dgeni/templates/property-list.template.html | 1 - tools/dgeni/templates/property.template.html | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/dgeni/templates/property-list.template.html b/tools/dgeni/templates/property-list.template.html index 95fea6906a42..0a54b03a629d 100644 --- a/tools/dgeni/templates/property-list.template.html +++ b/tools/dgeni/templates/property-list.template.html @@ -3,7 +3,6 @@
Properties
NameType Description
+ {$ property.type $} {$ property.description | marked | safe $}
- {% for p in propertyList %} diff --git a/tools/dgeni/templates/property.template.html b/tools/dgeni/templates/property.template.html index 4374d5d29fc0..9244bb306423 100644 --- a/tools/dgeni/templates/property.template.html +++ b/tools/dgeni/templates/property.template.html @@ -26,8 +26,10 @@ {$ property.name $}

- -
NameType Description
- {$ property.type $} + +
+ Type: {$ property.type $} +
+ {$ property.description | marked | safe $}
{$ property.description | marked | safe $}