add doc generation to build