MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / RemapState

Class RemapState

scripts/genRef.py:48–60  ·  view source on GitHub ↗

State used to remap spec anchors to Antora resource IDs antora - True if remapping is to be done module - Antora component/module containing the spec to target xrefMap - dictionary mapping spec anchors to chapter anchors pageMap - dictionary mapping chapter anchors to

Source from the content-addressed store, hash-verified

46}
47
48class RemapState:
49 """State used to remap spec anchors to Antora resource IDs
50 antora - True if remapping is to be done
51 module - Antora component/module containing the spec to target
52 xrefMap - dictionary mapping spec anchors to chapter anchors
53 pageMap - dictionary mapping chapter anchors to Antora page names
54 """
55
56 def __init__(self, antora=False, module='', pageMap={}, xrefMap={}):
57 self.antora = antora
58 self.module = module
59 self.pageMap = pageMap
60 self.xrefMap = xrefMap
61
62class RemapPatterns:
63 """Regular expressions used to remap spec anchors using RemapState

Callers 1

genRef.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected