Update for Vulkan-Docs 1.3.252

This commit is contained in:
Jon Leech 2023-06-02 06:19:12 -07:00 committed by Jon Leech
parent 3df77fb3e4
commit 605dc6d3e7
16 changed files with 2007 additions and 429 deletions

View file

@ -65,7 +65,16 @@ def nameMarkup(name):
major = match.group(1)
minor = match.group(2)
version = major + '.' + minor
return f'<<versions-{major}.{minor}, Version {version}>>'
# Vulkan SC has a different anchor pattern for version appendices
scMatch = re.search("[A-Z]+SC_VERSION_([0-9]+)_([0-9]+)", name)
if scMatch is not None:
if version == '1.0':
return 'Vulkan SC 1.0'
else:
return f'<<versions-sc-{major}.{minor}, Version SC {version}>>'
else:
return f'<<versions-{major}.{minor}, Version {version}>>'
else:
return 'apiext:' + name