build_docs.py 文件源码

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

项目:wiki-to-doc 作者: serra 项目源码 文件源码
def build_mkdocs(self):
        """
        Invokes MkDocs to build the static documentation and moves the folder
        into the project root folder.
        """
        # Setting the working directory
        os.chdir(MKDOCS_DIR)

        # Building the MkDocs project
        pipe = subprocess.PIPE
        mkdocs_process = subprocess.Popen(
            ["mkdocs", "build", "-q"], stdout=pipe, stderr=pipe)
        std_op, std_err_op = mkdocs_process.communicate()

        if std_err_op:
            raise Error("Could not build MkDocs !\n%s" %
                        std_err_op)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号