From 64bcb0860e606f9b1793a5b6b7250f965159766d Mon Sep 17 00:00:00 2001 From: Henry Pinkard <7969470+henrypinkard@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:27:42 +0200 Subject: [PATCH] use official workaround --- docs/conf.py | 2 +- docs/requirements.txt | 2 -- readthedocs.yaml | 22 ++++++++++++++++------ 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 94319b7..7f38767 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -35,4 +35,4 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] \ No newline at end of file +html_static_path = ['_static'] diff --git a/docs/requirements.txt b/docs/requirements.txt index efa209c..615a0e5 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,3 @@ sphinx sphinx-rtd-theme sphinx-togglebutton - -git+https://github.com/git-lfs/git-lfs diff --git a/readthedocs.yaml b/readthedocs.yaml index 1e4a891..35e32a8 100644 --- a/readthedocs.yaml +++ b/readthedocs.yaml @@ -11,12 +11,22 @@ build: os: ubuntu-20.04 tools: python: "3.10" - commands: - - wget https://github.com/git-lfs/git-lfs/releases/download/v2.7.1/git-lfs-linux-amd64-v2.7.1.tar.gz - - tar xvfz git-lfs-linux-amd64-v2.7.1.tar.gz - - ./git-lfs install - - ./git-lfs fetch - - ./git-lfs checkout + jobs: + post_checkout: + # Download and uncompress the 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