build_docs.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:wiki-to-doc 作者: serra 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号