New documentation build script

Updated to be simpler and work with github pages better