From eff150f8af6b085382ff1cfb675bc7b6914f51b3 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Fri, 3 Feb 2017 12:27:34 +0100 Subject: Add type parameters to entity title and render return type correctly --- doc-tool/resources/_layouts/api-page.html | 15 ++++++++++++++- doc-tool/resources/css/api-page.css | 8 ++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/doc-tool/resources/_layouts/api-page.html b/doc-tool/resources/_layouts/api-page.html index 49f01542e..392c0ef2d 100644 --- a/doc-tool/resources/_layouts/api-page.html +++ b/doc-tool/resources/_layouts/api-page.html @@ -19,6 +19,19 @@ extraCSS: {{ entity.name }} + + [ + {% for param in entity.typeParams %} + + {% if forloop.last %} + {{ param }} + {% else %} + {{ param }}, + {% endif %} + + {% endfor %} + ] + {% if entity.comment.body %} @@ -80,7 +93,7 @@ extraCSS: {% endif %} {% if member.returnValue %} - : {{ member.returnValue.title }} + : {% renderRef member.returnValue %} {% endif %} diff --git a/doc-tool/resources/css/api-page.css b/doc-tool/resources/css/api-page.css index 410e9978c..9bcea9a27 100644 --- a/doc-tool/resources/css/api-page.css +++ b/doc-tool/resources/css/api-page.css @@ -19,6 +19,14 @@ div#entity-title > span#entity-kind { font-weight: 100; } +div#entity-title span.no-left { + margin-left: -9px; +} + +div#entity-title span.no-right { + margin-right: -9px; +} + div#entity-body table > tbody > tr > td { padding: 10px; } -- cgit v1.2.3