Hacked version for the Sphinx compatibility. https://github.com/YakovSirotkin/sphinxIndex/issues/3