Skip to content

Commit 33758f1

Browse files
rmpowell77rpavlik
authored andcommitted
Update spec html string to make it easier to update.
updated spec to 1.1
1 parent f534503 commit 33758f1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

openxr_inventory/extensions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,15 @@ def generate_report(
171171
env.globals["cat_captions"] = _category_captions
172172
env.globals["categorize_ext"] = categorize_ext_name
173173
template = env.get_template(template_filename)
174+
spec_url = "https://www.khronos.org/registry/OpenXR/specs/1.1/html/xrspec.html"
174175
contents = template.render(
175176
extensions=compute_known_extensions(runtimes),
176177
extension_support=compute_extension_support(runtimes),
177178
runtime_support=compute_runtime_support(runtimes),
178179
known_form_factors=compute_known_form_factors(runtimes),
179180
form_factor_support=compute_form_factor_support(runtimes),
180181
runtimes=runtimes,
182+
spec_url=spec_url,
181183
)
182184

183185
if contents:

openxr_inventory/templates/extension_support.jinja2.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h2 id="extensions">Extensions</h2>
6666
<div class="row" id="{{ extension_name }}">
6767
<h3>{{ extension_name }} ({{ support | length }} runtime{{ "s" if support | length != 1 }})</h3>
6868
<p>
69-
<a href="https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#{{extension_name}}">Specification
69+
<a href="{{spec_url}}#{{extension_name}}">Specification
7070
for {{ extension_name }}</a>
7171
</p>
7272
<ul>
@@ -142,7 +142,7 @@ <h2>Runtime support matrix</h2>
142142
<tr>
143143
<th class="extname">
144144
{{ extension_name }}
145-
<a href="https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#{{extension_name}}" alt="speficication text">
145+
<a href="{{spec_url}}#{{extension_name}}" alt="speficication text">
146146
<span class="glyphicon glyphicon-link" aria-hidden="true"></span>
147147
</a>
148148
</th>
@@ -180,7 +180,7 @@ <h2>Runtime support matrix</h2>
180180
<tr>
181181
<th class="extname">
182182
{{ ff }}
183-
<a href="https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrFormFactor" alt="speficication text">
183+
<a href="{{spec_url}}#XrFormFactor" alt="speficication text">
184184
<span class="glyphicon glyphicon-link" aria-hidden="true"></span>
185185
</a>
186186
</th>
@@ -194,7 +194,7 @@ <h2>Runtime support matrix</h2>
194194
<tr>
195195
<th class="extname">
196196
&rarr; {{ vc }}
197-
<a href="https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrViewConfigurationType" alt="speficication text">
197+
<a href="{{spec_url}}#XrViewConfigurationType" alt="speficication text">
198198
<span class="glyphicon glyphicon-link" aria-hidden="true"></span>
199199
</a>
200200
</th>
@@ -207,7 +207,7 @@ <h2>Runtime support matrix</h2>
207207
<tr>
208208
<th class="extname">
209209
&rarr; &rarr; {{ ebm }}
210-
<a href="https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrEnvironmentBlendMode" alt="speficication text">
210+
<a href="{{spec_url}}#XrEnvironmentBlendMode" alt="speficication text">
211211
<span class="glyphicon glyphicon-link" aria-hidden="true"></span>
212212
</a>
213213
</th>

0 commit comments

Comments
 (0)