diff --git a/aio/src/styles/2-modules/_api-pages.scss b/aio/src/styles/2-modules/_api-pages.scss index 7bfdb19556..00a3bb1c9b 100644 --- a/aio/src/styles/2-modules/_api-pages.scss +++ b/aio/src/styles/2-modules/_api-pages.scss @@ -30,7 +30,7 @@ } } - .method-table { + .method-table, .option-table { h3 { margin: 6px 0; font-weight: bold; diff --git a/aio/tools/transforms/templates/api/decorator.template.html b/aio/tools/transforms/templates/api/decorator.template.html index 75e43cf6ec..050240a875 100644 --- a/aio/tools/transforms/templates/api/decorator.template.html +++ b/aio/tools/transforms/templates/api/decorator.template.html @@ -4,6 +4,40 @@ {% block overview %}{% include "includes/decorator-overview.html" %}{% endblock %} {% block details %} - {% include "includes/description.html" %} - {$ memberHelper.renderProperties(doc.members, 'metadata-members', 'metadata-member', 'Options') $} +{% include "includes/description.html" %} + +
{% endblock %} diff --git a/aio/tools/transforms/templates/api/includes/decorator-overview.html b/aio/tools/transforms/templates/api/includes/decorator-overview.html index a8328500d1..44f06484c3 100644 --- a/aio/tools/transforms/templates/api/includes/decorator-overview.html +++ b/aio/tools/transforms/templates/api/includes/decorator-overview.html @@ -1,10 +1,33 @@ -{% import "lib/memberHelpers.html" as memberHelper -%} +{% import "lib/descendants.html" as descendants -%} + +{% macro renderOptionsTable(doc) %} +Option | Description |
---|---|
+
+ {$ option.name $}
+
+ |
+ {$ option.shortDescription | marked $} | +