def edit_mkdocs_config(self):
"""
Create mkdocs.yml file from metadata
:return: Boolean indicating the success of the operation.
"""
mkdocs_yml = os.path.join(MKDOCS_DIR, "mkdocs.yml")
cfg = dict(
site_name=self._wiki_name,
theme='readthedocs',
docs_dir=self._wiki_name,
site_dir=self._out_dir
)
with open(mkdocs_yml, 'w') as outfile:
yaml.dump(cfg, outfile, default_flow_style=False)
评论列表
文章目录