Closes #22663: patchcheck: only modify text files under Doc/