sphinx: provide better sphinx compatibility