Skip to content

Commit 24d4803

Browse files
docs: fix RTD builds when last git tag is more than 50 commits behind (#1001)
## Description At the time of writing, the "latest" version of the scikit-build-core documentation website (https://scikit-build-core.readthedocs.io/en/latest/) shows documentation pages from an ancient version. This pull request _should_ fix that. ## Additional context https://docs.readthedocs.com/platform/stable/build-customization.html#unshallow-git-clone
1 parent e9ab153 commit 24d4803

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: .readthedocs.yml

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ build:
1010
os: ubuntu-22.04
1111
tools:
1212
python: "3.11"
13+
14+
# Unshallow the git clone to allow vcs versioning to pick
15+
# up tags properly
16+
jobs:
17+
post_checkout:
18+
- git fetch --unshallow
19+
1320
# Build documentation in the docs/ directory with Sphinx
1421
sphinx:
1522
configuration: docs/conf.py

0 commit comments

Comments
 (0)