More cleaning in offline doc scripts