generate docs in after_build script