-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocs_template.md.j2
92 lines (85 loc) · 2.09 KB
/
docs_template.md.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
layout: default
title: "Inputs: {{ workflow_name }}"
---
# Inputs for {{ workflow_name }}
The following is an overview of all available inputs in
{{ workflow_name }}.
{% if inputs.required is defined %}
## Required inputs
<dl>
{% for ri in inputs.required|sort(attribute='name') -%}
<dt id="{{ ri.name }}"><a href="#{{ ri.name }}">{{ ri.name }}</a></dt>
<dd>
<i>{{ ri.type }} </i>
{%- if ri.default is not none -%}
<i>— Default:</i> <code>{{ ri.default }}</code>
{%- endif -%}
<br />
{{ ri.description }}
</dd>
{% endfor -%}
</dl>
{% endif -%}
{% if inputs.common is defined %}
## Other common inputs
<dl>
{% for ci in inputs.common|sort(attribute='name') -%}
<dt id="{{ ci.name }}"><a href="#{{ ci.name }}">{{ ci.name }}</a></dt>
<dd>
<i>{{ ci.type }} </i>
{%- if ci.default is not none -%}
<i>— Default:</i> <code>{{ ci.default }}</code>
{%- endif -%}
<br />
{{ ci.description }}
</dd>
{% endfor -%}
</dl>
{% endif -%}
{% if inputs.advanced is defined %}
## Advanced inputs
<details>
<summary> Show/Hide </summary>
<dl>
{% for ai in inputs.advanced|sort(attribute='name') -%}
<dt id="{{ ai.name }}"><a href="#{{ ai.name }}">{{ ai.name }}</a></dt>
<dd>
<i>{{ ai.type }} </i>
{%- if ai.default is not none -%}
<i>— Default:</i> <code>{{ ai.default }}</code>
{%- endif -%}
<br />
{{ ai.description }}
</dd>
{% endfor -%}
</dl>
</details>
{% endif %}
{% if inputs.other is defined %}
## Other inputs
<details>
<summary> Show/Hide </summary>
<dl>
{% for oi in inputs.other|sort(attribute='name') -%}
<dt id="{{ oi.name }}"><a href="#{{ oi.name }}">{{ oi.name }}</a></dt>
<dd>
<i>{{ oi.type }} </i>
{%- if oi.default is not none -%}
<i>— Default:</i> <code>{{ oi.default }}</code>
{%- endif -%}
<br />
{{ oi.description }}
</dd>
{% endfor -%}
</dl>
</details>
{% endif %}
{% if excluded_inputs | length > 0 %}
## Do not set these inputs!
The following inputs should ***not*** be set, even though womtool may
show them as being available inputs.
{% for ei in excluded_inputs %}
* {{ ei }}
{%- endfor %}
{% endif %}