【问题标题】:Is it possible to upload sphinx pre-generated html documents into ReadTheDocs site?是否可以将 sphinx 预生成的 html 文档上传到 ReadTheDocs 网站?
【发布时间】: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

我也尝试了以下网址,但没有任何效果:

我想要达到的(原则上)可能吗?

【问题讨论】:

  • 已为 APIv2.1 安排了请求此确切功能的尚未解决的 RTD 问题:github.com/rtfd/readthedocs.org/issues/1083
  • 似乎该功能已被删除,但仍不受支持。太糟糕了,由于情节指令,我遇到了同样的问题
  • 我记得有(错误)使用 html_extra_path sphinx 选项来做到这一点。

标签: python matplotlib python-sphinx pypi read-the-docs


【解决方案1】:

现在应该根据this issue 修复问题。

【讨论】:

    猜你喜欢
    • 2010-12-05
    • 2013-03-02
    • 2018-06-17
    • 2013-09-28
    • 1970-01-01
    • 1970-01-01
    • 2012-10-31
    • 2018-03-02
    • 1970-01-01
    相关资源
    最近更新 更多