Build docs is now implemented using setup.py

This commit is contained in:
Sergey Lukjanov 2013-03-19 20:31:43 +04:00
parent 20b6e455a6
commit bba5e66fa1
3 changed files with 11 additions and 6 deletions

2
.gitignore vendored
View File

@ -25,6 +25,8 @@ target
*.iws
doc/html
doc/source/apidoc
doc/source/api
doc/build
*.db
.coverage
nosetests.xml

4
setup.cfg Normal file
View File

@ -0,0 +1,4 @@
[build_sphinx]
all_files = 1
build-dir = doc/build
source-dir = doc/source

View File

@ -1,12 +1,11 @@
#!/bin/bash
#!/bin/bash -e
echo "Building docs..."
rm -rf doc/html
rm -rf doc/source/apidoc
rm -rf doc/html doc/build
rm -rf doc/source/apidoc doc/source/api
# .venv/bin/sphinx-apidoc -f -o doc/source/apidoc/ eho
.venv/bin/sphinx-build doc/source/ doc/html/
.venv/bin/python setup.py build_sphinx
echo "Done."
echo "Docs are now available in 'doc/html/'"
echo "Docs are now available in 'doc/build/html/'"