packaging: move documentation HTML building to own function
This is part of some light refactoring to enable us to use
PyOxidizer for WiX MSI installer generation.
Differential Revision: https://phab.mercurial-scm.org/D10685
from __future__ import absolute_importimport pkgutil__path__ = pkgutil.extend_path(__path__, __name__)