Skip to content

Commit

Permalink
Merge pull request adafruit#6400 from Neradoc/fix-rtd-with-frozen-mod…
Browse files Browse the repository at this point in the history
…ules

Fetch the submodules in readthedocs with ci_fetch_deps.py
  • Loading branch information
dhalbert authored May 14, 2022
2 parents 85f8d43 + bb4c636 commit 1dce806
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@
version: 2

build:
os: ubuntu-20.04
tools:
python: "3"

submodules:
include:
- extmod/ulab
- frozen
os: ubuntu-20.04
tools:
python: "3"
jobs:
post_install:
- python tools/ci_fetch_deps.py docs HEAD

formats:
- pdf
- pdf

python:
install:
Expand Down
2 changes: 1 addition & 1 deletion tools/ci_fetch_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run(title, command):
if target == "test":
submodules = ["extmod/", "lib/", "tools/", "extmod/ulab", "lib/berkeley-db-1.xx"]
elif target == "docs":
# NOTE: must match .readthedocs.yml as this script is not run by readthedocs
# used in .readthedocs.yml to generate RTD
submodules = ["extmod/ulab/", "frozen/"]
elif target == "mpy-cross-mac":
submodules = ["tools/"] # for huffman
Expand Down

0 comments on commit 1dce806

Please sign in to comment.