你正在使用 globaltoc.htmlhtml_sidebars中. 此配置不能与Shaphinx一起工作,这就是您看到此消息的原因 请看 Shaphinx 自定义html_sidebars 寻找更多信息.