Edit: Just noticed SilasX below has a fuller example of 'yak shaving'. Thanks.
"Any apparently useless activity which, by allowing you to overcome intermediate difficulties, allows you to solve a larger problem."
That sounds like necessary mundane tasks to me. Definitely mostly hear it used that way.
"Tying your shoes" is for mundane but necessary tasks. "Sharpening your saw" is for tangential work that indirectly makes your output better.
I wouldn't call it yak shaving to review a help file for accuracy.
My characteristic example of yak shaving would be, "I want to add a radio button (mutually exclusive pick-one option) to this form, but the framework's docs don't say how, so I'll implement it with the checkbox list and require only one to be checked, so I look up how to enforce input validation, but that requires installing an extra module in the build, which then installs a different version of one dependency we're already using, which the framework doesn't like, so I need to install another extension that lets you use two different versions of the same library in the build, but has an occasional bug..."
Those steps are necessary in the sense that the current system forces you to do them, but (like technical debt), they're completely artificial steps that shouldn't be necessary (in that sense) to begin with.
"I need to shave a yak," I explain. "That's the only way I can get yak hair."
I'm in a deeply absurd situation, purely as a consequence of perfectly normal and understandable desires that just got completely out of control. I take in a deep breath, the smells of fresh air and yak manure and whatever the hell they feed yaks, gazing upon miles upon miles of gently rolling hills before rugged mountain peaks in the distance, awkwardly shaking my can of shaving cream. The rancher squints at me. I imagine him as an old man, his face weathered and wrinked, wearing suspenders and a red flannel shirt. "Why do you need yak hair?", he asks. I sigh. "It's a long story."