diff options
author | Jon Leech <[email protected]> | 2020-01-14 21:58:44 -0800 |
---|---|---|
committer | Jon Leech <[email protected]> | 2020-01-15 06:00:07 -0800 |
commit | 881bbb347a08d1b5aa77f61a52a30b506de9f2bf (patch) | |
tree | 4c165c0546c59301cb22c0d89452838de0219359 /registry/vkconventions.py | |
parent | f63dd5c9d874310c8403f3aef9302b761efedd18 (diff) | |
download | Vulkan-Headers-881bbb347a08d1b5aa77f61a52a30b506de9f2bf.tar.gz Vulkan-Headers-881bbb347a08d1b5aa77f61a52a30b506de9f2bf.zip |
Update for Vulkan-Docs 1.2.131v1.2.131
Diffstat (limited to 'registry/vkconventions.py')
-rw-r--r-- | registry/vkconventions.py | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/registry/vkconventions.py b/registry/vkconventions.py index 3d0e32a..acf985c 100644 --- a/registry/vkconventions.py +++ b/registry/vkconventions.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -i # -# Copyright (c) 2013-2019 The Khronos Group Inc. +# Copyright (c) 2013-2020 The Khronos Group Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ # used in generation. import re +import os from conventions import ConventionsBase @@ -52,10 +53,6 @@ MAIN_RE = re.compile( class VulkanConventions(ConventionsBase): - def formatExtension(self, name): - """Mark up a name as an extension for the spec.""" - return '`<<{}>>`'.format(name) - @property def null(self): """Preferred spelling of NULL.""" @@ -214,8 +211,8 @@ class VulkanConventions(ConventionsBase): @property def spec_reflow_path(self): - """Return the relative path to the spec source folder to reflow""" - return '.' + """Return the path to the spec source folder to reflow""" + return os.getcwd() @property def spec_no_reflow_dirs(self): @@ -246,3 +243,19 @@ class VulkanConventions(ConventionsBase): generate a VK_ERROR_FORMAT_NOT_SUPPORTED code.""" return True + + def extension_include_string(self, ext): + """Return format string for include:: line for an extension appendix + file. ext is an object with the following members: + - name - extension string string + - vendor - vendor portion of name + - barename - remainder of name""" + + return 'include::{{appendices}}/{name}{suffix}[]'.format( + name=ext.name, suffix=self.file_suffix) + + @property + def refpage_generated_include_path(self): + """Return path relative to the generated reference pages, to the + generated API include files.""" + return "{generated}" |