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 .doctrees is not copied over. Change-Id: I541e0259b896afb5d92d4d23153a7d0a27a419e6
This commit is contained in:
parent
744e642f5f
commit
7e0d825a7d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user