A hacky way of getting sphinx to work correctly.