forked from Motphys/MotrixLab
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.readthedocs.yaml
More file actions
35 lines (33 loc) · 1.25 KB
/
Copy path.readthedocs.yaml
File metadata and controls
35 lines (33 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 2
build:
os: ubuntu-24.04
tools:
python: "3.10"
jobs:
post_checkout:
- mkdir -p tools
# 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 -P tools
- tar xvfz ./tools/git-lfs-linux-amd64-v3.1.4.tar.gz -C tools
# Modify LFS config paths to point where git-lfs binary was downloaded
- git config filter.lfs.process "`pwd`/tools/git-lfs filter-process"
- git config filter.lfs.smudge "`pwd`/tools/git-lfs smudge -- %f"
- git config filter.lfs.clean "`pwd`/tools/git-lfs clean -- %f"
# Make LFS available in current repository
- ./tools/git-lfs install
# Download content from remote
- ./tools/git-lfs fetch
# Make local files to have the real content on them
- ./tools/git-lfs checkout
- rm -rf ./tools
pre_create_environment:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
create_environment:
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
install:
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --extra docs
sphinx:
configuration: docs/source/conf.py