My answer comes from the other side: what I do before leaving, to make sure the team isn't screwed.
Second Owner I always make sure that everything I own has a second owner. When I'm getting ready to leave a job, I find a new second owner for each of those things. If I forget something, at least it won't be completely orphaned.
Future plans I'm always thinking about what we should do next; when I'm getting ready to leave, I start writing them all down.
How to do my job There are always responsibilities I've taken on that other people don't know much about. Before I leave, I write them all down and send that info out to the team.
I also ask around, to see what people want from me before I go. It doesn't net much, as other people don't know as much about what I'm doing as I know, but sometimes there's something important that I missed.
I start this process as soon as I know I'm going to leave, even before anyone else knows my decision. In one case that was 6 months before I left.
From the original question:
Comments in source code aren't likely to answer some question you were otherwise stuck on. Asking someone to go back over their code and make sure it's "well commented" is going to take a lot of their time but not get you much value.
Pair programming is extremely effective in spreading knowledge around, especially when it's ** Promiscuous Pairing**
If you don't have source code for their work, you've been doing it wrong since the beginning. All source should be in source control from the beginning.
If they're writing a tool you consume: Every binary should be documented with info about where it came from, where the source code lives, which revisions it was built from, how to build it, etc. This is the same as if you release software to your regular users.
If you are dependent on a bunch of machines that someone was responsible for, they should all have second administrators from the start, in case the primary administrator is unavailable. For critical systems, have a 3rd admin, too.
In the end, though, the team is still somewhat screwed: they don't have me, and I'm hard to replace.