From 8bd35aaff5d795ef091c4788fe637de94e39c0c0 Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Mon, 15 Jun 2020 14:20:32 +0200 Subject: [PATCH] tweak appearance --- docs/_layouts/api_documentation_template.j2 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/_layouts/api_documentation_template.j2 b/docs/_layouts/api_documentation_template.j2 index 7ac0d834..53fd127a 100644 --- a/docs/_layouts/api_documentation_template.j2 +++ b/docs/_layouts/api_documentation_template.j2 @@ -12,10 +12,10 @@ download: [%- endmacro %] [%- macro value_type_ref(type) -%] -[%- if type.builtin %] -**[[type.name]]** -[%- else %] -**[['[']][[type.name]][[']']]([[type.fullname | lower]])** +[%- if type.builtin -%] +[[type.name]] +[%- else -%] +[['[']][[type.name]][[']']]([[type.fullname | lower]]) [%- endif %] [%- endmacro %] @@ -62,9 +62,9 @@ download: [% if interface.attributes %] [% for attr in interface.attributes.values() %] [%- if attr.type.purename == 'fibre.Property' %] -[[attr.name]] - [[value_type_ref(attr.type.value_type)]]    _([[attr.type.mode]] property)_ +**[[attr.name]]**  —  [[value_type_ref(attr.type.value_type)]]    _[[attr.type.mode]]_ [%- else %] -[[attr.name]] - [[interface_ref(attr.type)]] +**[[attr.name]]**  —  [[interface_ref(attr.type)]] [%- endif %] [[-status_badge(attr.status)]] @@ -90,7 +90,7 @@ This interface has no attributes. [% if interface.functions %] [% for function in interface.functions.values() %] -[[function.name]]([% for arg in function.in.values() | skip_first %][[arg.name]]: [[value_type_ref(arg.type)]][[', ' if not loop.last]][% endfor %])[[' -> ' if function.out]][% for arg in function.out.values() %][[arg.name]]: [[value_type_ref(arg.type)]][[', ' if not loop.last]][% endfor %] +**[[function.name]]**([% for arg in function.in.values() | skip_first %][[arg.name]]: [[value_type_ref(arg.type)]][[', ' if not loop.last]][% endfor %])[% if function.out %]  ➔  [% for arg in function.out.values() %][[arg.name]]: [[value_type_ref(arg.type)]][[', ' if not loop.last]][% endfor %][% endif %]