阅读Docs / Sphinx在构建时发生奇怪的错误

问题描述

我正在尝试为我正在制作的python API包装器制作文档(您可以查看文档代码here),当我尝试在读取文档仪表盘上进行构建时,我得到了

Running Sphinx v1.8.5
loading translations [en]... done
making output directory...
building [mo]: targets for 0 po files that are out of date
building [readthedocs]: targets for 1 source files that are out of date
updating environment: 1 added,0 changed,0 removed
reading sources... [100%] index


Traceback (most recent call last):
 File "/home/docs/checkouts/readthedocs.org/user_builds/hypyxel/envs/latest/lib/python3.7/site-packages/sphinx/cmd/build.py",line 304,in build_main
   app.build(args.force_all,filenames)
 File "/home/docs/checkouts/readthedocs.org/user_builds/hypyxel/envs/latest/lib/python3.7/site-packages/sphinx/application.py",line 341,in build
   self.builder.build_update()
 File "/home/docs/checkouts/readthedocs.org/user_builds/hypyxel/envs/latest/lib/python3.7/site-packages/sphinx/builders/__init__.py",line 347,in build_update
   len(to_build))
 File "/home/docs/checkouts/readthedocs.org/user_builds/hypyxel/envs/latest/lib/python3.7/site-packages/sphinx/builders/__init__.py",line 360,in build
   updated_docnames = set(self.read())
 File "/home/docs/checkouts/readthedocs.org/user_builds/hypyxel/envs/latest/lib/python3.7/site-packages/sphinx/builders/__init__.py",line 472,in read
   self.env.doc2path(self.config.master_doc))
sphinx.errors.SphinxError: master file /home/docs/checkouts/readthedocs.org/user_builds/hypyxel/checkouts/latest/docs/contents.rst not found

Sphinx error:
master file /home/docs/checkouts/readthedocs.org/user_builds/hypyxel/checkouts/latest/docs/contents.rst not found

这是否意味着我需要一个contents.rst文件?还是这是阅读docs / sphinx的问题?还是其他?

谢谢!

解决方法

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

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

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