3 # Not refactored to root Makefile because CI calls this from
4 # makefile in /docs (as if 'make -C docs').
9 PYTHON_INTERP=$(PYTHON)
13 OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
17 # We need to install the venv package on new systems
18 if [ "$OS_ID" == "ubuntu" ]
20 sudo apt-get install $CONFIRM python3-venv
22 if [ "$OS_ID" == "centos" ]
24 sudo yum install $CONFIRM python3-venv
27 # Install the virtual environment
28 $PYTHON_INTERP -m venv $VENV_DIR
29 source $VENV_DIR/bin/activate;
30 $PYTHON_INTERP -m pip install wheel==0.34.2
31 $PYTHON_INTERP -m pip install -r $DOCS_DIR/etc/requirements.txt
33 source $VENV_DIR/bin/activate;
34 VERSION=`source $WS_ROOT/src/scripts/version`
36 sed -ie "s/**VPP Version:\*\* .*/**VPP Version:** $VERSION/" $DOCS_DIR/about.rst
37 sed -ie "s/**Built on:\*\* .*/**Built on:** $TM/" $DOCS_DIR/about.rst
38 rm $DOCS_DIR/about.rste