make: improve docs migration script