I would argue that you are doing both: you are writing documentation for the people that were not there when you wrote the code, but also for the people that were, but have worked on several other things in the meanwhile, so they might have forgotten about all the details.