sphinx生成html页面时,如何去掉页面右下角的“Created using Sphinx 1.7.9.”字样?

软件和网站开发以及相关技术探讨
回复
头像
驿窗project
帖子: 226
注册时间: 2019-01-17 12:17
系统: Arch/Debian
联系:

sphinx生成html页面时,如何去掉页面右下角的“Created using Sphinx 1.7.9.”字样?

#1

帖子 驿窗project » 2020-10-23 15:53

用reST+sphinx制作的html文档,使用bizstyle theme,生成的html页面上,在右下角有一个条目,叫做“Created using Sphinx 1.7.9.
这个信息应该能通过sphinx中某个开关来去掉,但我一直没找到去掉的方法~

请参考这个页面的最右下角:
https://pypubsub.readthedocs.io/en/v4.0.3/
头像
oneleaf
论坛管理员
帖子: 10446
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

Re: sphinx生成html页面时,如何去掉页面右下角的“Created using Sphinx 1.7.9.”字样?

#2

帖子 oneleaf » 2020-10-23 16:28

https://www.sphinx-doc.org/en/master/us ... how_sphinx

html_show_sphinx¶
If true, “Created using Sphinx” is shown in the HTML footer. Default is True.

New in version 0.4.
头像
驿窗project
帖子: 226
注册时间: 2019-01-17 12:17
系统: Arch/Debian
联系:

Re: sphinx生成html页面时,如何去掉页面右下角的“Created using Sphinx 1.7.9.”字样?

#3

帖子 驿窗project » 2020-10-23 18:05

果然是这个参数~
我在conf.py文件添加了下面一行:

代码: 全选

html_use_index = False
然后重新 make html,生成的新的HTML页面,已经没有“Created using Sphinx 1.7.9.”的提示了~

不过这个参数很明显,我反复查找都没找到,这没道理~
难道是因为我不会编程么?或者是搜索关键词不对?
你是怎样一步一步找到这个参数的?

另外,你有收款码没?我小额表示一下~
回复