Reset local changes before building the docs

Sometimes (actually) the docs can't be updated due local changes