server.py 文件源码

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

项目:lifter 作者: EliotBerriot 项目源码 文件源码
def main():

    build_project_path = '_build'
    if not os.path.exists(build_project_path):
        os.system('make html')

    server = Server()
    server.watch('./*.rst', shell('make html'))
    server.watch('./*/*.rst', shell('make html'))
    webbrowser.open_new_tab('http://127.0.0.1:5500')
    server.serve(root='_build/html')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号