Skip to content

Commit a2b4eb0

Browse files
committed
Unshallow Read the Docs git clone
Read the Docs does not perform a full clone on checkout job to reduce network data and speed up the build process. Because of this, extensions that depend on the full Git history will fail [1]. This breaks build of release notes, since reno needs Git history access. [1] https://docs.readthedocs.io/en/stable/build-customization.html#unshallow-git-clone
1 parent d94483b commit a2b4eb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ build:
1111
os: ubuntu-22.04
1212
tools:
1313
python: "3.7"
14+
jobs:
15+
post_checkout:
16+
- git fetch --unshallow || true
1417

1518
# Build documentation in the doc/source/ directory with Sphinx
1619
sphinx:

0 commit comments

Comments
 (0)