搜索Sphinx使用bootstrap-theme



我从作者的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

:

通过在conf.py中加入language_data.js来解决。请看我的评论

这是一个bug。请确保您安装了最新版本的Sphinx,并使用git检出PR。

最新更新