Update sphinx config based on version 3.