web documentation fixed

This commit is contained in:
Elena Bobkova 2019-06-26 17:10:38 +03:00
parent b9ef35a772
commit f3283e3fcc
4 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1 @@
{{- type.baseTypeName -}}{%- include 'type-parameters.twig' with { typeParameters: type.typeParameters } -%}

View File

@ -28,9 +28,9 @@
{%- if link is not null -%}
<a class="info" href="{{ link }}">{{- utils.formatNullable(valueType.typeName, nullable) -}}</a>
<a class="info" href="{{ link }}">{{- utils.formatNullableClassType(valueType, nullable) -}}</a>
{%- else -%}
{{- utils.formatNullable(valueType.typeName, nullable) -}}
{{- utils.formatNullableClassType(valueType, nullable) -}}
{%- endif -%}
{%- endif -%}
{%- endmacro -%}

View File

@ -0,0 +1,8 @@
{%- import '../utils.twig' as utils -%}
{%- if typeParameters is not empty -%}
&lt;
{%- for typeParameter in typeParameters %}
{{- typeParameter.baseTypeName -}}{%- if not (loop.last) %}, {% endif %}
{%- endfor -%}
&gt;
{%- endif -%}

View File

@ -2,6 +2,10 @@
{{- expr -}}{%- if nullable -%}?{%- endif -%}
{% endmacro %}
{% macro formatNullableClassType(valueType, nullable) %}
{% include 'blocks/classtype.twig' with { type: valueType } %}{%- if nullable -%}?{%- endif -%}
{% endmacro %}
{% macro optionalDescription(optional) %}
{%- if optional -%}Нет{%- else -%}Да{%- endif -%}
{% endmacro %}