build script for generating the docs