diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/docs-build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh index 74144ff55..5a7dbc06e 100755 --- a/scripts/docs-build.sh +++ b/scripts/docs-build.sh @@ -173,16 +173,12 @@ function generate_name() { } -check_rst_doc $DOCS_DIR - if [[ ! -d "$OPNFVDOCS_DIR" ]] ; then echo "Error: $OPNFVDOCS_DIR dir not found." echo "See http://artifacts.opnfv.org/opnfvdocs/docs/how-to-use-docs ." exit 1 fi -prepare_src_files - if ! which virtualenv > /dev/null ; then echo "Error: 'virtualenv' not found. Exec 'sudo pip install virtualenv' first." exit 1 @@ -192,6 +188,10 @@ virtualenv "$VENV_DIR" source "$VENV_DIR/bin/activate" pip install -r "$OPNFVDOCS_DIR/etc/requirements.txt" +check_rst_doc $DOCS_DIR + +prepare_src_files + if [ -e "$DOCS_DIR/pre-hook.sh" ]; then source "$DOCS_DIR/pre-hook.sh" fi |