diff --git a/repo_helper/files/docs.py b/repo_helper/files/docs.py index d513bec9..9abbfa12 100644 --- a/repo_helper/files/docs.py +++ b/repo_helper/files/docs.py @@ -216,6 +216,16 @@ def make_rtfd(repo_path: pathlib.Path, templates: Environment) -> List[str]: else: post_create_command = "pip install ." + pinned_sphinxcontrib_deps = [ + "sphinxcontrib-applehelp==1.0.4", + "sphinxcontrib-devhelp==1.0.2", + "sphinxcontrib-htmlhelp==2.0.1", + "sphinxcontrib-jsmath==1.0.1", + "sphinxcontrib-qthelp==1.0.3", + "sphinxcontrib-serializinghtml==1.1.5", + ] + post_install_command = "pip install " + ' '.join(pinned_sphinxcontrib_deps) + # Formats: Optionally build your docs in additional formats such as PDF and ePub config = { "version": 2, @@ -228,7 +238,10 @@ def make_rtfd(repo_path: pathlib.Path, templates: Environment) -> List[str]: "build": { "os": "ubuntu-20.04", "tools": {"python": "3.9"}, - "jobs": {"post_create_environment": [post_create_command]} + "jobs": { + "post_create_environment": [post_create_command], + "post_install": [post_install_command], + } } } diff --git a/tests/test_files/test_docs_/test_make_rtfd_case_1.yml b/tests/test_files/test_docs_/test_make_rtfd_case_1.yml index 615e8643..35b5c858 100644 --- a/tests/test_files/test_docs_/test_make_rtfd_case_1.yml +++ b/tests/test_files/test_docs_/test_make_rtfd_case_1.yml @@ -19,3 +19,6 @@ build: jobs: post_create_environment: - pip install .[all] + post_install: + - pip install sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 + sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 diff --git a/tests/test_files/test_docs_/test_make_rtfd_case_2.yml b/tests/test_files/test_docs_/test_make_rtfd_case_2.yml index 3a2f828a..d7b316b6 100644 --- a/tests/test_files/test_docs_/test_make_rtfd_case_2.yml +++ b/tests/test_files/test_docs_/test_make_rtfd_case_2.yml @@ -20,3 +20,6 @@ build: jobs: post_create_environment: - pip install .[all] + post_install: + - pip install sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 + sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5