One thing worth adding is that documentation checks should cover behavior changes, not just whether individual statements exist in the code. A flag or API field can still be present while its meaning, validation order, or interaction with another setting has changed.
For critical docs, I’d also treat examples as lightweight integration tests wherever possible. Running a command or request against the current implementation catches a different class of drift than searching for names and constants. That makes the review more reliable and gives the next developer something executable rather than just plausible prose.