summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/how-to-use-docs/documentation-example.rst1
-rwxr-xr-xscripts/docs-build.sh8
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/how-to-use-docs/documentation-example.rst b/docs/how-to-use-docs/documentation-example.rst
index bbd710961..80876e101 100644
--- a/docs/how-to-use-docs/documentation-example.rst
+++ b/docs/how-to-use-docs/documentation-example.rst
@@ -170,6 +170,7 @@ also used in document build jobs below:
.. code-block:: bash
+ $ sudo pip install virtualenv
$ cd /local/repo/path/to/project
$ git clone https://git.opnfv.org/opnfvdocs docs_build/_opnfvdocs
$ ./docs_build/_opnfvdocs/scripts/docs-build.sh
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