Rebuild docs to make them easier to maintain
This commit is contained in:
11
_includes/paramsList.html
Normal file
11
_includes/paramsList.html
Normal file
@ -0,0 +1,11 @@
|
||||
{%
|
||||
for param in include.params
|
||||
%}{%
|
||||
if param.optionalGroup
|
||||
%}[{% include paramsList.html params=param.params %}]{%
|
||||
else
|
||||
%}{%
|
||||
if param.optional %}[{%endif %}{{param.name}}{% if param.optional %}]{%endif
|
||||
%}{%endif
|
||||
%}{% if forloop.last == false %}, {%endif%}{% endfor
|
||||
%}
|
12
_includes/paramsListLong.html
Normal file
12
_includes/paramsListLong.html
Normal file
@ -0,0 +1,12 @@
|
||||
{%
|
||||
for param in include.params
|
||||
%}<li>{%
|
||||
if param.optionalGroup
|
||||
%}<span class="methodparams">{{param.name}}</span> - <span class="methodparamoptional">(optional)</span><ul>{% include paramsListLong.html params=param.params %}</ul>{%
|
||||
else
|
||||
%}
|
||||
<span class="methodparams">{{param.name}}</span> {% if param.type %}<span class="methodparamstype">{{param.type}}</span> {% endif %} {% if param.optional %}<span class="methodparamoptional">(optional)</span> {%endif %} -
|
||||
{{param.description}}
|
||||
|
||||
{% endif %}</li>{% endfor
|
||||
%}
|
Reference in New Issue
Block a user