Improved Sphinx configuration