Updated the build script to generate the docs too.