Skip to content

Commit bd5c377

Browse files
committed
Attempt to make plone.api importable to Sphinx by using its system Python instead of the Python in the Makefile
1 parent be920d4 commit bd5c377

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.readthedocs.yaml

+1-11
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,7 @@ build:
1212
python: "3.12"
1313
# nodejs: "19"
1414
commands:
15-
# - make rtd-pr-preview
16-
- pip install -r requirements-initial.txt
17-
- pip install -r requirements.txt
18-
- git submodule init
19-
- git submodule update
20-
- pip install -e submodules/plone.api[test]
21-
- ln -s ../submodules/volto/docs/source ./docs/volto
22-
- ln -s ../submodules/plone.restapi ./docs/plone.restapi
23-
- ln -s ../submodules/plone.api/docs ./docs/plone.api
24-
- cd ./docs/ && "$(realpath bin/sphinx-build)" -b html -d $(BUILDDIR)/doctrees . ${READTHEDOCS_OUTPUT}/html/
25-
15+
- make rtd-pr-preview
2616

2717
# Build documentation in the "docs/" directory with Sphinx
2818
#sphinx:

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ livehtml: deps ## Rebuild Sphinx documentation on changes, with live-reload in
225225
-b html . "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
226226

227227
.PHONY: rtd-pr-preview
228-
rtd-pr-preview: bin/python ## Build pull request preview on Read the Docs
228+
rtd-pr-preview: ## Build pull request preview on Read the Docs
229+
pip install -r requirements-initial.txt
230+
pip install -r requirements.txt
229231
git submodule init
230232
git submodule update
231233
pip install -e submodules/plone.api[test]

0 commit comments

Comments
 (0)