7
7
8
8
<!-- Title & Description -->
9
9
< div class ="function-type-title " style ="color: {{type_colors[function.type_name]}}; "> {{ function.type_name|capitalize }} function</ div >
10
- < h1 style ="border-bottom: 3px solid {{type_colors[function.type_name]}}; padding-bottom: 0.1em; "> {{ function.name }}</ h1 >
10
+ < h1 style ="border-bottom: 3px solid {{type_colors[function.type_name]}}; padding-bottom: 0.1em; "> {{ function.name }} < a class =" small-fs " href =" # " onclick =" copyText('{{ function.name }}', 'copy-{{ function.name }}') " > < i class =" fa-solid fa-copy " > </ i > < span id =" copy-{{ function.name }} " > Copy </ span > </ a > </ h1 >
11
11
12
12
{{ function[function.type_name].description_html }}
13
13
14
14
<!-- Syntax -->
15
- < h2 > Syntax</ h2 >
15
+ < h2 id =" syntax " > Syntax < a href =" #syntax " > < i class =" fa-solid fa-link " > </ i > </ a > </ h2 >
16
16
{% if function.syntaxes.single %}
17
17
{% set syntax = function.syntaxes.single %}
18
18
< div style ="padding-left: 1em; margin-top: 1em; border: 1px solid {{ info_color }}; border-radius: 5px; ">
@@ -91,11 +91,12 @@ <h4>Returns:</h4>
91
91
92
92
<!-- Preview Images -->
93
93
{% if function.has_preview_image %}
94
+ < h2 id ="images "> Preview images < a href ="#images "> < i class ="fa-solid fa-link "> </ i > </ a > </ h2 >
94
95
{% for type_name in ['shared', 'client', 'server'] %}
95
96
{% if function[type_name] %}
96
97
97
98
{% if function[type_name].preview_images %}
98
- < div style ="padding-left: 1em; margin-top: 1em; border: 1px solid {{ info_color }}; border-radius: 5px; ">
99
+ < div style ="padding-left: 1em; padding-bottom: 1em; margin-top: 1em; border: 1px solid {{ info_color }}; border-radius: 5px; ">
99
100
{% for image in function[type_name].preview_images %}
100
101
{% if image.description_html %}
101
102
< p > {{ image.description_html }}</ p >
@@ -111,7 +112,7 @@ <h4>Returns:</h4>
111
112
112
113
<!-- Issues -->
113
114
{% if function.has_issue %}
114
- < h2 > Issues</ h2 >
115
+ < h2 id =" issues " > Issues < a href =" #issues " > < i class =" fa-solid fa-link " > </ i > </ a > </ h2 >
115
116
{% for type_name in ['shared', 'client', 'server'] %}
116
117
{% if function[type_name] %}
117
118
@@ -134,14 +135,14 @@ <h2>Issues</h2>
134
135
{% endif %}
135
136
136
137
<!-- Examples -->
137
- < h2 > Examples</ h2 >
138
+ < h2 id =" examples " > Examples < a href =" #examples " > < i class =" fa-solid fa-link " > </ i > </ a > </ h2 >
138
139
{% for type_name in ['shared', 'client', 'server'] %}
139
140
{% if function[type_name] %}
140
141
141
142
{% if function[type_name].examples %}
142
143
{% for example in function[type_name].examples %}
143
144
< div style ="padding-left: 1em; margin-top: 1em; border: 1px solid {{ type_colors[type_name] }}; border-radius: 5px; ">
144
- < h3 > Example {{ example.number }} < span style ="color: {{ type_colors[type_name] }}; "> ({{ type_name|capitalize }})</ span > </ h3 >
145
+ < h3 id =" example-{{ example.number }} " > Example {{ example.number }} < span style ="color: {{ type_colors[type_name] }}; "> ({{ type_name|capitalize }})</ span > < a href =" #example-{{ example.number }} " > < i class =" fa-solid fa-link " > </ i > </ a > </ h3 >
145
146
{% if example.description_html %}
146
147
{{ example.description_html }}
147
148
{% endif %}
0 commit comments