Hi,
If you follow the steps in documentation below, I think you will find the way to set this up:
https://docs.mendix.com/refguide/creating-your-own-documents
If you run into specific problems, please provide a more clear question.
Good Luck!