Skip to content

Commit ff407dc

Browse files
committed
Add .readthedocs.yaml for LFS support
1 parent 5f7f6bb commit ff407dc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.readthedocs.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Read the Docs configuration file.
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details.
3+
4+
version: 2
5+
build:
6+
os: ubuntu-22.04
7+
tools:
8+
python: "3.7"
9+
jobs:
10+
post_checkout:
11+
# Download and uncompress the binary
12+
# https://git-lfs.github.com/
13+
- wget https://github.com/git-lfs/git-lfs/releases/download/v3.1.4/git-lfs-linux-amd64-v3.1.4.tar.gz
14+
- tar xvfz git-lfs-linux-amd64-v3.1.4.tar.gz
15+
# Modify LFS config paths to point where git-lfs binary was downloaded
16+
- git config filter.lfs.process "`pwd`/git-lfs filter-process"
17+
- git config filter.lfs.smudge "`pwd`/git-lfs smudge -- %f"
18+
- git config filter.lfs.clean "`pwd`/git-lfs clean -- %f"
19+
# Make LFS available in current repository
20+
- ./git-lfs install
21+
# Download content from remote
22+
- ./git-lfs fetch
23+
# Make local files to have the real content on them
24+
- ./git-lfs checkout
25+
26+
sphinx:
27+
configuration: documentation/source/conf.py

0 commit comments

Comments
 (0)