From: Ryota MIBU Date: Wed, 10 Aug 2016 07:23:00 +0000 (+0900) Subject: use doc8 in virtualenv X-Git-Tag: colorado.1.0~16 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=c15e4a979697c71e125e5dd88b0d201744efc39b;p=opnfvdocs.git use doc8 in virtualenv Change-Id: I58fd9e9382932ebc2521765bb665dcf0473d6a68 JIRA: DOCS-152 Signed-off-by: Ryota MIBU --- 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