Skip to content

Commit

Permalink
Hack to add git lfs to readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
loicdtx committed Jan 15, 2024
1 parent 22f2be1 commit da5820a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ build:
os: ubuntu-20.04
tools:
python: "3.11"
jobs:
post_checkout:
# Download and uncompress the git-lfs binary
# https://git-lfs.github.com/
- wget https://github.com/git-lfs/git-lfs/releases/download/v3.1.4/git-lfs-linux-amd64-v3.1.4.tar.gz
- tar xvfz git-lfs-linux-amd64-v3.1.4.tar.gz
# Modify LFS config paths to point where git-lfs binary was downloaded
- git config filter.lfs.process "`pwd`/git-lfs filter-process"
- git config filter.lfs.smudge "`pwd`/git-lfs smudge -- %f"
- git config filter.lfs.clean "`pwd`/git-lfs clean -- %f"
# Make LFS available in current repository
- ./git-lfs install
# Download content from remote
- ./git-lfs fetch
# Make local files to have the real content on them
- ./git-lfs checkout

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down

0 comments on commit da5820a

Please sign in to comment.