由于 pathspec,ReadTheDocs 构建失败
ReadTheDocs build fails due to pathspec
我正在尝试 a sphinx
documentation and put it online using ReadTheDocs, however following the steps of the tutorial 我最终在我的构建中弹出以下错误:
Read the Docs build information
Build id: 12647743
Project: documentationseries
Version: latest
Commit: None
Date: 2020-12-28T11:42:02.102474Z
State: finished
Success: False
[rtd-command-info] start-time: 2020-12-28T11:43:48.024647Z, end-time: 2020-12-28T11:43:48.412733Z, duration: 0, exit-code: 0
git clone --no-single-branch --depth 50 https://github.com/guilhermetheis/documentationSeries.git .
Cloning into '.'...
[rtd-command-info] start-time: 2020-12-28T11:43:48.872904Z, end-time: 2020-12-28T11:43:48.949867Z, duration: 0, exit-code: 1
git checkout --force master
error: pathspec 'master' did not match any file(s) known to git.
我也添加了 .readthedocs.yml
。我有一个 gitignore
设置 build/
被忽略,但根据我的理解,build
文件夹包含必要的 HTML 代码,这被删除了。 rst
方面我还没有做任何更改。这个想法是让它上线,然后添加以消除调试中的任何复杂层。我真的不明白为什么会这样(而且我对编程非常 new/bad)所以如果可能的话,我恳请您提供深入的解释。
回购没有 master
分支所以你显然无法检查它,--force
或者没有 --force
.
repo 使用 main
作为唯一分支的名称,您可以通过访问自己提供的 link 轻松发现这一点。
(这是重大重命名的一部分;许多项目过去使用 master
,但现在已开始迁移到不同的术语。另请参阅 )
我正在尝试 sphinx
documentation and put it online using ReadTheDocs, however following the steps of the tutorial 我最终在我的构建中弹出以下错误:
Read the Docs build information
Build id: 12647743
Project: documentationseries
Version: latest
Commit: None
Date: 2020-12-28T11:42:02.102474Z
State: finished
Success: False
[rtd-command-info] start-time: 2020-12-28T11:43:48.024647Z, end-time: 2020-12-28T11:43:48.412733Z, duration: 0, exit-code: 0
git clone --no-single-branch --depth 50 https://github.com/guilhermetheis/documentationSeries.git .
Cloning into '.'...
[rtd-command-info] start-time: 2020-12-28T11:43:48.872904Z, end-time: 2020-12-28T11:43:48.949867Z, duration: 0, exit-code: 1
git checkout --force master
error: pathspec 'master' did not match any file(s) known to git.
我也添加了 .readthedocs.yml
。我有一个 gitignore
设置 build/
被忽略,但根据我的理解,build
文件夹包含必要的 HTML 代码,这被删除了。 rst
方面我还没有做任何更改。这个想法是让它上线,然后添加以消除调试中的任何复杂层。我真的不明白为什么会这样(而且我对编程非常 new/bad)所以如果可能的话,我恳请您提供深入的解释。
回购没有 master
分支所以你显然无法检查它,--force
或者没有 --force
.
repo 使用 main
作为唯一分支的名称,您可以通过访问自己提供的 link 轻松发现这一点。
(这是重大重命名的一部分;许多项目过去使用 master
,但现在已开始迁移到不同的术语。另请参阅