Fix generate docs and ignore dirs