fix api doc generation in post build