Skip to content

Commit

Permalink
Fetch the submodules in readthedocs with ci_fetch_deps.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Neradoc committed May 14, 2022
1 parent 85f8d43 commit bb4c636
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 bb4c636

Please sign in to comment.