Docutils 对 readthedocs 的 sphinx 主题的依赖

问题描述

我曾经在 readthedocs.io 服务器上保存一个项目文档。这是链接 CoFEA Initiative

自 4 月 3 日以来,由于发布了新版本的 docutils 库,它看起来有点损坏(例如,主徽标向左对齐但应居中)。 docutils 的最新版本是 0.17,这个特殊的 sphinx 主题适用于 0.16 及以下版本。

log file 显示了它不工作的原因。一、readthedocs服务器安装最新版本的docutils

Collecting docutils>=0.11
  Downloading docutils-0.17-py2.py3-none-any.whl (575 kB)

然后 sphinx 主题尝试根据 setup.py 中定义的内容下载并安装特定版本的 docutils

Installed /home/docs/checkouts/readthedocs.org/user_builds/cofea/envs/latest/lib/python3.7/site-packages/ipygany-0.5.0-py3.7.egg
Searching for docutils==0.16
Reading https://pypi.org/simple/docutils/
Downloading https://files.pythonhosted.org/packages/81/44/8a15e45ffa96e6cf82956dd8d7af9e666357e16b0d93b253903475ee947f/docutils-0.16-py2.py3-none-any.whl#sha256=0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af
Best match: docutils 0.16
Processing docutils-0.16-py2.py3-none-any.whl
Installing docutils-0.16-py2.py3-none-any.whl to /home/docs/checkouts/readthedocs.org/user_builds/cofea/envs/latest/lib/python3.7/site-packages

我认为正在发生的事情是,当调用 sphinx 命令时,它使用的是 0.17 版而不是 0.16 版。

有没有办法强制使用 docutils 0.16 版本的 sphinx

感谢您的帮助

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)