Skip to content

Commit

Permalink
Merge pull request #1125 from hbrunn/11.0-fix-build-openupgrade-docs
Browse files Browse the repository at this point in the history
[ADD] fetch openupgrade 10.0 docs too
  • Loading branch information
pedrobaeza authored Oct 11, 2017
2 parents 926af60 + 79e0579 commit 58210e7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/build_openupgrade_docs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ DOC_PARTS="7.0/openerp/openupgrade/doc/source/modules50-60.rst
7.0/openerp/openupgrade/doc/source/modules60-61.rst
7.0/openerp/openupgrade/doc/source/modules61-70.rst
8.0/openerp/openupgrade/doc/source/modules70-80.rst
9.0/openerp/openupgrade/doc/source/modules80-90.rst"
9.0/openerp/openupgrade/doc/source/modules80-90.rst
10.0/odoo/openupgrade/doc/source/modules90-100.rst
"
OUTPUT_DIR=${OUTPUT_DIR:-$DOC_BUILD_DIR}/build/html
OPENUPGRADELIB=https://github.com/OCA/OpenUpgradelib.git

for line in $DOC_PARTS; do
if [ -z "$line" ]; then
continue
fi
name=$(basename $line)
wget -q $BASE_URL/$line -O $DOC_BUILD_DIR/source/$name
done
Expand All @@ -22,4 +27,4 @@ else
fi
export PYTHONPATH=$PYTHONPATH:$OPENUPGRADE_PYTHON_PATH:$DOC_BUILD_DIR/openupgradelib
mkdir -p $DOC_BUILD_DIR/source/.static
sphinx-build -q -d $DOC_BUILD_DIR/.doctrees $DOC_BUILD_DIR/source $OUTPUT_DIR
sphinx-build -W -q -d $DOC_BUILD_DIR/.doctrees $DOC_BUILD_DIR/source $OUTPUT_DIR

0 comments on commit 58210e7

Please sign in to comment.