in DocBuild.py [0:0]
def AddToTree(self, path, leafvalue):
if(path is None):
return
p = path.partition("/") # p[0] = name p[2] = remaining
if(len(p[2]) > 0):
rem = p[2]
# Dev Note: it was decided that a "Docs" folder found at the root of a Edk2 Package
# should be treated special and that all markdown files found with the code (in modules)
# should lowered one level in TOC by adding a "Module" node.
if p[0].endswith("Pkg") and not p[2].startswith(NavTree.SPECIAL_KEY_FIND_PKG_DOCS):
rem = NavTree.SPECIAL_KEY_PACKAGE_MODULES + "/" + p[2]
self.GetOrMakeChildNode(p[0]).AddToTree(rem, leafvalue)
else:
self.GetOrMakeChildNode(p[0], leafvalue)
return