我在阅读文档时遇到了项目问题

问题描述 投票:1回答:1

用sphinx-quickstart创建了狮身人面像项目。跑“制作HTML”并没有产生错误。将所有代码推送到GitHub。我尝试在Read the Docs上导入和构建项目,但是得到以下错误。在使用Mac-it构建并在Read the Docs上呈现代码时,我没有遇到任何问题。这次我使用的是Windows 10。

回溯(最近通话最后一个):文件“/home/docs/checkouts/readthedocs.org/user_builds/thirddocs/envs/latest/lib/python3.7/site-packages/sphinx/cmd/build.py”,行304在build_main app.build(args.force_all,文件名)文件 “/home/docs/checkouts/readthedocs.org/user_builds/thirddocs/envs/latest/lib/python3.7/site-packages/sphinx/application.py” ,341线,在建self.builder.build_update()文件“/home/docs/checkouts/readthedocs.org/user_builds/thirddocs/envs/latest/lib/python3.7/site-packages/sphinx/builders/init。 PY “线路347,在build_update LEN(to_build))文件” /home/docs/checkouts/readthedocs.org/user_builds/thirddocs/envs/latest/lib/python3.7/site-packages/sphinx/builders/init。 PY “线360,在建updated_docnames =设定(self.read())文件” /home/docs/checkouts/readthedocs.org/user_builds/thirddocs/envs/latest/lib/python3.7/site-packages/sphinx /builders/init.py”,线路472,在读出self.env.doc2path(self.config.master_doc))sphinx.errors.SphinxError:主文件/ home /文档/ C找不到heckouts / readthedocs.org / user_builds / thirddocs / checkouts / latest / contents.rst

Sphinx错误:未找到主文件/home/docs/checkouts/readthedocs.org/user_builds/thirddocs/checkouts/latest/contents.rst

documentation python-sphinx
1个回答
1
投票

它只需将master_doc ='index'添加到conf.py文件即可。

© www.soinside.com 2019 - 2024. All rights reserved.