[history-v1] add doc version recovery script GitOrigin-RevId: 3f240f313465ce5fa9c53f72a992807f9396ebb4