implement sphinx switch for tutorial