Has anyone actually "Documented themselves out of a job?"

I've been tasked with creating a knowledge base that we are linking to CoPilot Studio. Part of this requires making articles about anything and everything I can think of. I am creating TONS of articles including things I am certain only I know about our systems. I have a great job and am not worried about being let go but I'll admit I had a lingering thought, "If I keep at this and management does an overhaul, transition to an MSP for our company shouldn't be that hard"

I believe you should always document things, but being a silo can be a hedge for job security it seems. Especially if management does an overhaul. Has anyone actually "Documented themselves out of a job?"

Edit: I am essentially training an internal AI to know what I know and respond as such