mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Add a script to update online documentation
This commit is contained in:
parent
f18ab08334
commit
012cae051b
13
update-docs.sh
Normal file
13
update-docs.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
python setup.py gen docs
|
||||||
|
rm -rf /tmp/docs
|
||||||
|
mv docs/ /tmp/docs
|
||||||
|
git checkout gh-pages
|
||||||
|
# there's probably better ways but we know none has spaces
|
||||||
|
rm -rf $(ls /tmp/docs)
|
||||||
|
mv /tmp/docs/* .
|
||||||
|
git add constructors/ types/ methods/ index.html js/search.js css/ img/
|
||||||
|
git commit --amend -m "Update documentation"
|
||||||
|
git push --force
|
||||||
|
git checkout master
|
Loading…
Reference in New Issue
Block a user