refactored sphinx config