1
1
{%- assign ref = include.ref -%}
2
2
{%- assign functions = ref.elements | where: "type", "FUNCTION" -%}
3
- {%- assign variables = ref.elements | where: "type", "VARIABLE" -%}
4
3
{%- assign messages = ref.elements | where: "type", "MESSAGE" -%}
5
4
{%- assign properties = ref.elements | where: "type", "PROPERTY" -%}
6
5
{%- assign macros = ref.elements | where: "type", "MACRO" -%}
7
6
{%- assign enums = ref.elements | where: "type", "ENUM" -%}
8
7
8
+ {%- assign v = ref.elements | where: "type", "VARIABLE" -%}
9
+ {%- assign c = ref.elements | where: "type", "CONSTANT" -%}
10
+ {%- assign constants = v | concat: c -%}
11
+
9
12
< h1 > {{ ref.info.brief }}</ h1 >
10
13
< p > {{ ref.info.description }}</ p >
11
14
< p > Version: {{ page.branch }}</ p >
@@ -25,16 +28,16 @@ <h1>{{ ref.info.brief }}</h1>
25
28
</ table >
26
29
{%- endif -%}
27
30
28
- {%- if variables .size > 0 -%}
31
+ {%- if constants .size > 0 -%}
29
32
< table class ="compact ">
30
33
< tr >
31
34
< th > CONSTANTS</ th >
32
35
< th > </ th >
33
36
</ tr >
34
- {%- for variable in variables -%}
37
+ {%- for constant in constants -%}
35
38
< tr >
36
- < td > < a href ="#{% include ref_anchorlink.html element=variable %} "> {{ variable .name }}</ a > </ td >
37
- < td > {{ variable .brief }}</ td >
39
+ < td > < a href ="#{% include ref_anchorlink.html element=constant %} "> {{ constant .name }}</ a > </ td >
40
+ < td > {{ constant .brief }}</ td >
38
41
</ tr >
39
42
{%- endfor -%}
40
43
</ table >
@@ -139,15 +142,15 @@ <h4>{{ function.name }}()<a href="#{% include ref_anchorlink.html element=functi
139
142
{%- endfor -%}
140
143
{%- endif -%}
141
144
142
- {%- if variables .size > 0 -%}
145
+ {%- if constants .size > 0 -%}
143
146
< h2 > Constants</ h2 >
144
- {%- for variable in variables -%}
145
- {% include ref_anchor_target.html element=variable %}
146
- < h5 class ="compact "> {{ variable .name }}< a href ="#{% include ref_anchorlink.html element=variable %} " class ="anchor-link "/> </ a > </ h5 class="compact">
147
- < p class ="compact "> {{ variable .description }}</ p >
147
+ {%- for constant in constants -%}
148
+ {% include ref_anchor_target.html element=constant %}
149
+ < h5 class ="compact "> {{ constant .name }}< a href ="#{% include ref_anchorlink.html element=constant %} " class ="anchor-link "/> </ a > </ h5 class="compact">
150
+ < p class ="compact "> {{ constant .description }}</ p >
148
151
149
- {%- if variable .parameters.size > 0 -%}
150
- {% include api_lua_parameters.html parameters=variable .parameters %}
152
+ {%- if constant .parameters.size > 0 -%}
153
+ {% include api_lua_parameters.html parameters=constant .parameters %}
151
154
{%- endif -%}
152
155
153
156
{% if forloop.last == false %}< hr class ="compact "/> {% else %}< hr /> {% endif %}
0 commit comments