rebuild docs script