Keep ids of the documented items themselves, not their parent modules. Parent modules can be retreived from those ids when necessary.