#!/bin/bash

# Set up virtualenv
if [ -d docugen-env ]; then
    rm -rf docugen-env
fi

virtualenv -p python3.6 docugen-env
. docugen-env/bin/activate
pip install -r requirements.txt --index-url https://pypi.zooxlabs.com/simple

# create html pages for recordable
make html

# post pages on http://fwval-docs.web.zooxlabs.com/html/index.html
aws s3 sync _build/html s3://zoox-web/fwval-docs/

# remove _build directory
make clean
