Do not publish doctrees

Currently we published the cached sphinx build data (13 MB for
Install Guides) to docs.openstack.org. This is not needed at all. Invoke
build_sphinx in such a way that .dirtrees is not copied over.

Change-Id: Id96e75f2bbdc96b60aed9d9915bdd20f8eae6892
Depends-On: I541e0259b896afb5d92d4d23153a7d0a27a419e6
This commit is contained in:
Andreas Jaeger 2015-10-13 20:29:55 +02:00 committed by KATO Tomoyuki
parent ce4f1067ae
commit 2ff4c542dd
1 changed files with 6 additions and 2 deletions

View File

@ -74,6 +74,8 @@ else
BUILD_DIR="$DIRECTORY/$BUILD/html"
fi
DOCTREES="${BUILD_DIR}.doctrees"
if [ -z "$TAG" ] ; then
echo "Checking $DIRECTORY..."
else
@ -83,12 +85,14 @@ fi
if [ "$LINKCHECK" = "1" ] ; then
# Show sphinx-build invocation for easy reproduction
set -x
sphinx-build -E -W -b linkcheck $TAG_OPT $DIRECTORY/source $BUILD_DIR
sphinx-build -E -W -d $DOCTREES -b linkcheck $TAG_OPT \
$DIRECTORY/source $BUILD_DIR
set +x
else
# Show sphinx-build invocation for easy reproduction
set -x
sphinx-build -E -W -b html $TAG_OPT $DIRECTORY/source $BUILD_DIR
sphinx-build -E -W -d $DOCTREES -b html $TAG_OPT \
$DIRECTORY/source $BUILD_DIR
set +x
# Copy RST