summaryrefslogtreecommitdiffstats
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
parentd1e8814e040f689d85b8fd5b00f20c8fe4f0aeb3 (diff)
use doc8 in virtualenv
Change-Id: I58fd9e9382932ebc2521765bb665dcf0473d6a68 JIRA: DOCS-152 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-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