The exact same changes worked in the old ``photutils/__init.py__``. Here I can't really test these kind of docs buildings. 
Anyway it also worked in the astropy core in the ``rst`` files where similar definitions as well as ``.. include::`` commands were at the bottom of the file. e.g. ``docs/development/workflow/development_workflow.rst``