微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用 bootstrap-theme 搜索 Sphinx

如何解决使用 bootstrap-theme 搜索 Sphinx

我从作者的 https://github.com/ryan-roemer/sphinx-bootstrap-theme 克隆并完成了所有配置。一切看起来都很好,除了当您使用搜索功能时,它会显示 Searching... 并且什么也没有发生。

我的python版本是3.9.1,sphinx-quickstart 3.4.3。还有

$ pip freeze
alabaster==0.7.12
Babel==2.9.0
bcrypt==3.2.0
certifi==2020.12.5
cffi==1.14.4
chardet==4.0.0
cryptography==3.3.1
docutils==0.16
fabric==2.5.0
idna==2.10
imagesize==1.2.0
invoke==1.5.0
Jinja2==2.11.2
MarkupSafe==1.1.1
packaging==20.8
paramiko==2.7.2
pycparser==2.20
Pygments==2.7.4
pynacl==1.4.0
pyparsing==2.4.7
pytz==2020.5
requests==2.25.1
six==1.15.0
snowballstemmer==2.0.0
Sphinx==3.4.3
sphinx-bootstrap-theme==0.7.1
sphinxbootstrap4theme==0.6.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
urllib3==1.26.2

更新

通过在 language_data.js添加要加载的 conf.py 解决了这个问题。请看我的评论

解决方法

这是一个 bug。确保安装最新版本的 Sphinx 并使用 PR 的 git checkout。向维护者提供有关 PR 的反馈。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。