Skip to content

Commit 6e48d39

Browse files
committed
RTD cannot run multiple make targets
1 parent c23aa55 commit 6e48d39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ livehtml: deps ## Rebuild Sphinx documentation on changes, with live-reload in
226226

227227
.PHONY: rtd-pr-preview
228228
rtd-pr-preview: bin/python ## Build pull request preview on Read the Docs
229+
git submodule init; \
230+
git submodule update; \
231+
pip install -e submodules/plone.api[test]; \
232+
ln -s ../submodules/volto/docs/source ./docs/volto
233+
ln -s ../submodules/plone.restapi ./docs/plone.restapi
234+
ln -s ../submodules/plone.api/docs ./docs/plone.api
229235
cd $(DOCS_DIR) && $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) ${READTHEDOCS_OUTPUT}/html/
230236

231237
.PHONY: netlify

0 commit comments

Comments
 (0)