summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-10 16:23:00 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-10 16:23:00 +0900
commitc15e4a979697c71e125e5dd88b0d201744efc39b (patch)
treef083119a8722501265812378a671c4e95bc63bca /scripts
parentd1e8814e040f689d85b8fd5b00f20c8fe4f0aeb3 (diff)
use doc8 in virtualenv
Change-Id: I58fd9e9382932ebc2521765bb665dcf0473d6a68 JIRA: DOCS-152 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/docs-build.sh8
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