Skip to content

Commit ef7e1ee

Browse files
authored
Merge pull request #6612 from radarhere/makedoc
Ensure dependencies are installed when building docs
2 parents e8fdab3 + c043f97 commit ef7e1ee

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ jobs:
9494
- name: Docs
9595
if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == 3.10
9696
run: |
97-
python3 -m pip install furo sphinx-copybutton sphinx-issues sphinx-removed-in sphinxext-opengraph
9897
make doccheck
9998
10099
- name: After success

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ coverage:
1717

1818
.PHONY: doc
1919
doc:
20+
python3 -c "import PIL" > /dev/null 2>&1 || python3 -m pip install .
2021
$(MAKE) -C docs html
2122

2223
.PHONY: doccheck
2324
doccheck:
24-
$(MAKE) -C docs html
25+
$(MAKE) doc
2526
# Don't make our tests rely on the links in the docs being up every single build.
2627
# We don't control them. But do check, and update them to the target of their redirects.
2728
$(MAKE) -C docs linkcheck || true

docs/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ clean:
4343
-rm -rf $(BUILDDIR)/*
4444

4545
install-sphinx:
46-
$(PYTHON) -c "import sphinx" > /dev/null 2>&1 || $(PYTHON) -m pip install sphinx
47-
$(PYTHON) -c "import furo" > /dev/null 2>&1 || $(PYTHON) -m pip install furo
46+
$(PYTHON) -m pip install --quiet sphinx sphinx-copybutton sphinx-issues sphinx-removed-in sphinxext-opengraph furo olefile
4847

4948
html:
5049
$(MAKE) install-sphinx

0 commit comments

Comments
 (0)