diff --git a/.github/workflows/documentation-checks.yaml b/.github/workflows/documentation-checks.yaml index d3800c2d76..3c6c40c916 100644 --- a/.github/workflows/documentation-checks.yaml +++ b/.github/workflows/documentation-checks.yaml @@ -77,6 +77,16 @@ jobs: woke-target: woke makefile: Makefile + - name: Link Check + id: linkcheck-step + if: success() || failure() + uses: canonical/documentation-workflows/linkcheck@main + with: + working-directory: doc/sphinx + install-target: install + linkcheck-target: ${{ inputs.linkcheck-target }} + makefile: Makefile + - if: ${{ failure() && runner.debug }} name: Setup upterm session uses: mxschmitt/action-tmate@v3 diff --git a/doc/sphinx/Makefile b/doc/sphinx/Makefile index 5b7a7e5543..44b788ebf0 100644 --- a/doc/sphinx/Makefile +++ b/doc/sphinx/Makefile @@ -99,7 +99,7 @@ spelling: html . $(VENV) ; cd ../build_doc/doc/sphinx/; python3 -m pyspelling -c $(SPHINXDIR)/spellingcheck.yaml -j $(shell nproc) linkcheck: install - . $(VENV) ; $(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) + . $(VENV) ; cd ../build_doc/doc/sphinx/; $(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) woke: woke-install woke *.rst **/*.rst --exit-1-on-failure \