aboutsummaryrefslogtreecommitdiffhomepage
path: root/registry/vkconventions.py
diff options
context:
space:
mode:
Diffstat (limited to 'registry/vkconventions.py')
-rw-r--r--registry/vkconventions.py27
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}"