77
88<!-- Title & Description -->
99< 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 >
1111
1212{{ function[function.type_name].description_html }}
1313
1414<!-- Syntax -->
15- < h2 > Syntax</ h2 >
15+ < h2 id =" syntax " > Syntax < a href =" #syntax " > < i class =" fa-solid fa-link " > </ i > </ a > </ h2 >
1616{% if function.syntaxes.single %}
1717 {% set syntax = function.syntaxes.single %}
1818 < div style ="padding-left: 1em; margin-top: 1em; border: 1px solid {{ info_color }}; border-radius: 5px; ">
@@ -91,11 +91,12 @@ <h4>Returns:</h4>
9191
9292<!-- Preview Images -->
9393{% if function.has_preview_image %}
94+ < h2 id ="images "> Preview images < a href ="#images "> < i class ="fa-solid fa-link "> </ i > </ a > </ h2 >
9495{% for type_name in ['shared', 'client', 'server'] %}
9596 {% if function[type_name] %}
9697
9798 {% 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; ">
99100 {% for image in function[type_name].preview_images %}
100101 {% if image.description_html %}
101102 < p > {{ image.description_html }}</ p >
@@ -111,7 +112,7 @@ <h4>Returns:</h4>
111112
112113<!-- Issues -->
113114{% 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 >
115116{% for type_name in ['shared', 'client', 'server'] %}
116117 {% if function[type_name] %}
117118
@@ -134,14 +135,14 @@ <h2>Issues</h2>
134135{% endif %}
135136
136137<!-- Examples -->
137- < h2 > Examples</ h2 >
138+ < h2 id =" examples " > Examples < a href =" #examples " > < i class =" fa-solid fa-link " > </ i > </ a > </ h2 >
138139{% for type_name in ['shared', 'client', 'server'] %}
139140 {% if function[type_name] %}
140141
141142 {% if function[type_name].examples %}
142143 {% for example in function[type_name].examples %}
143144 < 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 >
145146 {% if example.description_html %}
146147 {{ example.description_html }}
147148 {% endif %}
0 commit comments