generate docs script