Sphinx:排除下一个和上一个按钮

Sta*_*ley 7 python-sphinx read-the-docs

我正在寻找删除NextPrev按钮。根据我从文档中读到的内容,这可以通过排除relations.html;来实现。但我不确定如何实现这一目标。

我尝试将以下内容添加到conf.py,没有太多改变

html_sidebars = {'**': ['localtoc.html', 'searchbox.html']}
Run Code Online (Sandbox Code Playgroud)

如果有任何相关性,我正在使用 ReadTheDocs 主题。

elb*_*ero 5

假设您使用Sphinx 的阅读文档conf.py主题,请将此代码段添加到您的:

html_theme_options = {
    'prev_next_buttons_location': None
}
Run Code Online (Sandbox Code Playgroud)

详细信息请参见https://pypi.python.org/pypi/sphinx_rtd_theme/#configuration