summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Leech <oddhack@sonic.net>2024-03-25 07:04:54 -0700
committerJon Leech <oddhack@sonic.net>2024-03-25 07:04:54 -0700
commitfad27392b1818a7356e8a65a77ce9e723d4a7f3f (patch)
treea7f143eddbd2067708d7086b59c2c2748ee2a274
parent7ccda9da169c801c91e690b178c6b00f79cd02f3 (diff)
downloadgfxstream-protocols-fad27392b1818a7356e8a65a77ce9e723d4a7f3f.tar.gz
Adjust proposal links to point to the docs site from the Antora build
Closes https://github.com/KhronosGroup/Vulkan-Site/issues/65
-rw-r--r--config/attribs.adoc8
-rw-r--r--scripts/extensionmetadocgenerator.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/config/attribs.adoc b/config/attribs.adoc
index 5b83e3ff..1eb10710 100644
--- a/config/attribs.adoc
+++ b/config/attribs.adoc
@@ -110,10 +110,10 @@ endif::VKSC_VERSION_1_0[]
:glemulation: OpenGL / ES support
-// URL prefix for the github repository containing the public specification,
-// used to generate links to separate extension proposal documents in
-// generated extension metadata.
-:specRepositoryURL: https://github.com/KhronosGroup/Vulkan-Docs/tree/main
+// Link/xref prefix for the location of proposal documents.
+:specRepositoryURL: https://github.com/KhronosGroup/Vulkan-Docs/tree/main/
+ifdef::site-gen-antora[:proposalRefPath: xref:proposals:]
+ifndef::site-gen-antora[:proposalRefPath: link:{specRepositoryURL}]
// URL prefix for the GLSL extensions registry
:GLSLregistry: https://github.com/KhronosGroup/GLSL/blob/master/extensions
diff --git a/scripts/extensionmetadocgenerator.py b/scripts/extensionmetadocgenerator.py
index 835cbc32..25319709 100644
--- a/scripts/extensionmetadocgenerator.py
+++ b/scripts/extensionmetadocgenerator.py
@@ -443,7 +443,7 @@ class Extension:
tag = 'Extension Proposal'
for (name, path) in sorted(proposals):
self.writeTag(tag,
- f'link:{{specRepositoryURL}}/{path}[{name}]',
+ f'{{proposalRefPath}}{path}[{name}]',
isRefpage, fp)
# Setting tag = None so additional values will not get
# additional tag headers.