fish eab69b17ec 0 | 1 year ago | |
---|---|---|
.github | 1 year ago | |
.ide | 1 year ago | |
docs | 1 year ago | |
repo_sync | 1 year ago | |
scripts | 1 year ago | |
test | 1 year ago | |
.coding-ci.yml | 1 year ago | |
.env | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
favicon.ico | 1 year ago | |
main.py | 1 year ago | |
requirements.txt | 1 year ago | |
setup.cfg | 1 year ago | |
setup.py | 1 year ago |
多平台多账户项目源码同步工具
比如把 data/repo.txt 中的项目同步到 github 上:
python repo_sync.py --debug true --repo data/repo.txt --type github
1、项目以 zhizhou/github 作为项目源,同步到其他平台。 2、同步项目最好每月定时执行一次,以防止代码丢失。
vim /etc/crontab
0 0 1 * * python repo_sync.py --type github
pip install python-pip
文档构建:
cd docs
# install pdf
apt-get install texlive-latex-recommended -y
apt-get install texlive-latex-extra -y
apt-get install latexmk -y
make html
make latexpdf
docker build -t jianboy:repo_sync_docs .
docker run -it --rm -v .:/app jianboy:repo_sync_docs
docker run -it --rm -v .:/app jianboy:repo_sync_docs /bin/sh
执行,/my/repo_sync_docs生成文档,部署即可