summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/docs-build.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh
index 3b1e7b2b6..ebd3c65aa 100755
--- a/scripts/docs-build.sh
+++ b/scripts/docs-build.sh
@@ -105,6 +105,7 @@ function prepare_config() {
add_config "$_conf" 'master_doc' "'index'"
add_config "$_conf" 'pygments_style' "'sphinx'"
add_config "$_conf" 'html_use_index' "False"
+ add_config "$_conf" 'html_last_updated_fmt' "'%b %d, %Y'"
add_config "$_conf" 'html_logo' "'opnfv-logo.png'"
add_config "$_conf" 'html_sidebars' \
"{'**': ['globaltoc.html',
@@ -165,7 +166,14 @@ if ! which virtualenv > /dev/null ; then
exit 1
fi
-virtualenv "$VENV_DIR"
+# workaround for doc8 error in python2.6
+if [[ $(python -V 2>&1) == Python\ 2.6.* ]] && [ -e /usr/bin/python2.7 ]; then
+ echo "creating venv with Python 2.7 instead of Python 2.6.x ..."
+ virtualenv "$VENV_DIR" --python=/usr/bin/python2.7
+else
+ virtualenv "$VENV_DIR"
+fi
+
source "$VENV_DIR/bin/activate"
pip install -r "$OPNFVDOCS_DIR/etc/requirements.txt"