This is actually something I'm actively worried about.
At my current job, I've made a bunch of QoL improvements to various spreadsheets and slack channels, primarily (relatively) simple scripts to automate things. While I'm nowhere near a "programmer", no one else really has any experience with it. I'm looking for a different job and am worried that if something breaks after I leave, it's going to screw over my coworkers. They'd either have to ask an actual Dev/Eng to take a look, or go back to the old way.
Beyond Dev/Eng likely just not having the time, who knows what fuckery the Pandora's box of "hey, can you take a look at this script written by a guy who's no longer here?" holds, so I would completely understand them declining to go anywhere near it.
If I do end up leaving, I'd like to be able to dedicate a good chunk of my last two weeks writing comments and guides and making sure things are as robust as possible. 🫤