From bb4c63699a768f15e46150e026c39d28e064b72e Mon Sep 17 00:00:00 2001 From: Neradoc Date: Sat, 14 May 2022 16:46:09 +0200 Subject: [PATCH] Fetch the submodules in readthedocs with ci_fetch_deps.py --- .readthedocs.yml | 16 +++++++--------- tools/ci_fetch_deps.py | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 460ac8f5d8..94ba8750b0 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -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: diff --git a/tools/ci_fetch_deps.py b/tools/ci_fetch_deps.py index 1b0f5b57dc..491d8da0e5 100644 --- a/tools/ci_fetch_deps.py +++ b/tools/ci_fetch_deps.py @@ -68,7 +68,7 @@ submodules = [] 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