in DocBuild.py [0:0]
def MakeYml(self):
ymlbase = open(self.YmlFilePathBase, "r")
yamlout = open(self.YmlFilePathOut, 'w')
for line in ymlbase:
yamlout.write(line)
# now parse as yaml
ymlbase.seek(0)
# yaml.load(f)
# IMPORTANT NOTE: This call to "unsafe_load()" is only acceptable because we control the yml file being loaded.
# Unsafe load is required to support some configuration options for pymdownx.
if "extra" in yaml.unsafe_load(ymlbase):
raise Exception(
"extra: member not allowed in mkdocs_base.yml. Please add the contents to DocBuild constructor instead. ")
ymlbase.close()
self.Yml = yamlout