Skip to content

Commit 2ad1722

Browse files
authored
Merge pull request #1667 from Libensemble/docs/ax_status
deps in place to fix ax issues (at least locally), experimenting with…
2 parents 140baf4 + 375a31f commit 2ad1722

5 files changed

Lines changed: 30 additions & 19 deletions

File tree

.readthedocs.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,31 @@ build:
44
os: "ubuntu-22.04"
55
tools:
66
python: "3.10"
7+
commands:
8+
# from https://docs.readthedocs.com/platform/stable/build-customization.html#support-git-lfs-large-file-storage
9+
# Download and uncompress the binary
10+
# https://git-lfs.github.com/
11+
- wget https://github.com/git-lfs/git-lfs/releases/download/v3.1.4/git-lfs-linux-amd64-v3.1.4.tar.gz
12+
- tar xvfz git-lfs-linux-amd64-v3.1.4.tar.gz git-lfs
13+
# Modify LFS config paths to point where git-lfs binary was downloaded
14+
- git config filter.lfs.process "`pwd`/git-lfs filter-process"
15+
- git config filter.lfs.smudge "`pwd`/git-lfs smudge -- %f"
16+
- git config filter.lfs.clean "`pwd`/git-lfs clean -- %f"
17+
# Make LFS available in current repository
18+
- ./git-lfs install
19+
# Download content from remote
20+
- ./git-lfs fetch
21+
# Make local files to have the real content on them
22+
- ./git-lfs checkout
23+
- asdf plugin add pixi
24+
- asdf install pixi latest
25+
- asdf global pixi latest
26+
- pixi run -e docs build-docs
27+
- mkdir -p $READTHEDOCS_OUTPUT/html/
28+
- cp -r docs/_build/html/** $READTHEDOCS_OUTPUT/html/
729

830
sphinx:
931
configuration: docs/conf.py
1032

1133
formats:
1234
- pdf
13-
14-
python:
15-
install:
16-
- requirements: docs/requirements.txt
17-
- method: pip
18-
path: .
19-
extra_requirements:
20-
- docs

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class AxParameterWarning(Warning): # Ensure it's a real warning subclass
101101
"sphinxcontrib.autodoc_pydantic",
102102
"sphinx_design",
103103
"sphinx_copybutton",
104+
"sphinx_lfs_content",
104105
]
105106

106107
spelling_word_list_filename = "spelling_wordlist.txt"

docs/requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

pixi.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ mypy = ">=1.19.1,<2"
136136
types-psutil = ">=6.1.0.20241221,<7"
137137
types-pyyaml = ">=6.0.12.20250915,<7"
138138

139+
[tool.pixi.tasks.build-docs]
140+
cmd = "cd docs && make html"
141+
139142
# Linux dependencies, only for extra tests
140143
[tool.pixi.feature.extra.target.linux-64.dependencies]
141144
scikit-build = "*"
@@ -208,11 +211,12 @@ extra = [
208211
"redis>=7.1.0,<8",
209212
]
210213
dev = ["wat>=0.7.0,<0.8"]
214+
docs = ["pyenchant", "enchant>=0.0.1,<0.0.2", "sphinx-lfs-content>=1.1.10,<2"]
211215

212216
# Various config from here onward
213217
[tool.black]
214218
line-length = 120
215-
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
219+
target-version = ['py310', 'py311', 'py312', 'py313']
216220
force-exclude = '''
217221
(
218222
/(

0 commit comments

Comments
 (0)