Skip to content

Commit

Permalink
fix: readthedocs git fetch unshallow
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Jul 28, 2023
1 parent 9e03505 commit acc445c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ build:
os: ubuntu-22.04
tools:
python: "3.10"

jobs:
post_checkout:
- git fetch --unshallow
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- git fetch origin
pre_install:
- pip install -U pip
- pip install setuptools>=45 setuptools_scm[toml]>=6.2
- SETUPTOOLS_SCM_DEBUG=1 python -m setuptools_scm
# Build from the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
Expand All @@ -14,4 +22,7 @@ sphinx:
# Explicitly set the version of Python and its requirements
python:
install:
- method: pip
path: .
- requirements: requirements-docs.txt
system_packages: false

0 comments on commit acc445c

Please sign in to comment.