Sphinx base code.