A more general solution as suggested by @Hong Minhee in the comment on pull request 9.
Thanks for your work! I merged.
Thanks for looking at this. Is it possible for you to publish this to the Python Package Index, so that I can include "sphinxcontrib-httpdomain" as a requirement for building my documentation?
Oh, sure. I will do that right now.
I just released httpdomain-1.1.7. http://pypi.python.org/pypi/sphinxcontrib-httpdomain/1.1.7