Skip to content

Commit

Permalink
Changed documentation generation scripts. Moved index.html message ge…
Browse files Browse the repository at this point in the history
…neration into the clean method of the Sphinx Makefile. Removed the cens HTML_LOCATION in the Sphinx Makefile since only one is valid and I think this sould be copied or linked to cens seperatly.
  • Loading branch information
schryer committed Jun 29, 2010
1 parent 8e3bd62 commit 64fed76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 4 additions & 2 deletions doc/Makefile
Expand Up @@ -2,7 +2,6 @@
#

HTML_TARGET = ../apidocs
HTML_TARGET = /net/cens/home/www/sysbio/download/software/iocbio

# You can set these variables from the command line.
SPHINXOPTS =
Expand Down Expand Up @@ -30,7 +29,10 @@ help:
@echo " doctest to run all doctests embedded in the documentation (if enabled)"

clean:
-rm -rf _build/*
-rm -rf _build source/generated $(HTML_TARGET)
-mkdir $(HTML_TARGET)
-touch $(HTML_TARGET)/index.html
-echo `date -u` ": documentation is being updated... try again in few minutes." > $(HTML_TARGET)/index.html

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(HTML_TARGET)
Expand Down
7 changes: 2 additions & 5 deletions mk_apidocs.sh
@@ -1,11 +1,8 @@
#!/bin/sh

rm -rf doc/_build/ doc/source/generated /net/cens/home/www/sysbio/download/software/iocbio/*
echo `date -u` ": documentation is being updated... try again in few minutes." > /net/cens/home/www/sysbio/download/software/iocbio/index.html
PYTHONPATH=`pwd`:$PYTHONPATH
cd doc && make html || exit 1

cd doc && make clean && make html || exit 1
cd -
exit 0

#rm -rf apidocs/.buildinfo doc/_build doc/source/generated # full rebuild

0 comments on commit 64fed76

Please sign in to comment.