So after fiddling and experimenting, I kinda figured out the workflow of writing custom docs for your custom module :D
-
Make a new directory doc_classes in the root of your custom module.
-
Add following code to config.py:
def get_doc_classes(): return [ "YourClassName", ]