Parcourir la source

Added Makefile target: upload_docs (Build & Upload documentation to Github and PyPI)

Ask Solem il y a 15 ans
Parent
commit
fa4c2c9db5
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      Makefile

+ 8 - 0
Makefile

@@ -8,8 +8,16 @@ cycomplex:
 	find celery -type f -name "*.py" | xargs pygenie.py complexity
 
 ghdocs:
+	rm -rf docs/.build
 	contrib/doc2ghpages
 
+upload_github_docs: ghdocs
+
+upload_pypi_docs:
+	python setup.py build_sphinx && python setup.py upload_sphinx
+
+upload_docs: upload_github_docs upload_pypi_docs
+
 autodoc:
 	contrib/doc4allmods celery