Skip to content

Commit 08a2fbe

Browse files
authored
Merge pull request #1422 from wolbernd/master
[docs] fix docs-linkcheckbroken task
2 parents 781a767 + 218f765 commit 08a2fbe

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ jobs:
5656

5757
# build sphinx
5858
- name: sphinx
59-
# run: if [ "${{ matrix.plone-version }}" == "5.2" ] && [ ${{ matrix.python-version }} == '3.7' ]; then bin/sphinxbuilder; fi
60-
run: if [ "${{ matrix.plone-version }}" == "5.2" ] && [ ${{ matrix.python-version }} == '3.7' ]; then make docs-html; fi
59+
run: if [ "${{ matrix.plone-version }}" == "6.0" ] && [ ${{ matrix.python-version }} == '3.9' ]; then make docs-html; fi
6160

6261
# test
6362
- name: test
@@ -70,6 +69,6 @@ jobs:
7069
PYTHON_VERSION: ${{ matrix.python-version }}
7170
PLONE_VERSION: ${{ matrix.plone-version }}
7271

73-
# test sphinx warnings
74-
# - name: sphinx
75-
# run: if [ "${{ matrix.plone-version }}" == "5.2" ] && [ ${{ matrix.python-version }} == '3.7' ]; then ./test-no-sphinx-warnings; fi
72+
# test for broken links
73+
- name: linkcheck
74+
run: if [ "${{ matrix.plone-version }}" == "6.0" ] && [ ${{ matrix.python-version }} == '3.9' ]; then make docs-linkcheckbroken; fi

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ docs-linkcheck: bin/python ## Run linkcheck
137137

138138
.PHONY: docs-linkcheckbroken
139139
docs-linkcheckbroken: bin/python ## Run linkcheck and show only broken links
140-
cd $(DOCS_DIR) && $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | GREP_COLORS='0;31' egrep -wi broken --color=auto
140+
cd $(DOCS_DIR) && $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | GREP_COLORS='0;31' egrep -wi broken --color=auto || test $$? = 1
141141
@echo
142142
@echo "Link check complete; look for any errors in the above output " \
143143
"or in $(BUILDDIR)/linkcheck/ ."

news/1421.internal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fixed broken make task docs-linkcheckbroken

0 commit comments

Comments
 (0)