pyminer/docs/upload.py
2021-10-28 00:18:07 +08:00

11 lines
327 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import os
import sys
# 项目的根路径即pyminer项目的根文件夹
base = os.path.dirname(os.path.dirname(__file__))
sys.path.insert(0, base)
html_path = os.path.join(base, 'docs', 'build', 'html')
for line in os.popen(f'ghp-import -npfr git@gitee.com:py2cn/pyminer -b pages "{html_path}"'):
print(line, end='')