【发布时间】:2015-01-29 10:36:34
【问题描述】:
我有一个使用plot-directive 的python-3 项目,但ReadTheDocs 目前不支持此功能。因此,我想像通常使用 PyPi 存储库一样生成和上传文档,但使用 -r 选项指定不同的 url。
我尝试了以下方法,但失败了:
$ python3 setup.py build_sphinx register upload_docs -r https://readthedocs.org/pypi
running upload_docs
Using PyPI login from /home/user/.pypirc
Using upload directory /home/user/work/wltp.git/docs/_build/html
Submitting documentation to https://readthedocs.org/wltp/pypi
Upload failed (404): OK
我也尝试了以下网址,但没有任何效果:
- https://readthedocs.org/pypi/wltp
- https://readthedocs.org/pypi/wltp/latest
- https://readthedocs.org/wltp/pypi
- https://readthedocs.org/wltp/latest/pypi/
我想要达到的(原则上)可能吗?
【问题讨论】:
-
已为 APIv2.1 安排了请求此确切功能的尚未解决的 RTD 问题:github.com/rtfd/readthedocs.org/issues/1083
-
似乎该功能已被删除,但仍不受支持。太糟糕了,由于情节指令,我遇到了同样的问题
-
我记得有(错误)使用 html_extra_path sphinx 选项来做到这一点。
标签: python matplotlib python-sphinx pypi read-the-docs