Skip to content

Commit 943caa4

Browse files
Restore linkcheck and modify Makefile to run in the correct directory
1 parent a5158a8 commit 943caa4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/documentation-checks.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ jobs:
7777
woke-target: woke
7878
makefile: Makefile
7979

80+
- name: Link Check
81+
id: linkcheck-step
82+
if: success() || failure()
83+
uses: canonical/documentation-workflows/linkcheck@main
84+
with:
85+
working-directory: doc/sphinx
86+
install-target: install
87+
linkcheck-target: ${{ inputs.linkcheck-target }}
88+
makefile: Makefile
89+
8090
- if: ${{ failure() && runner.debug }}
8191
name: Setup upterm session
8292
uses: mxschmitt/action-tmate@v3

doc/sphinx/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ spelling: html
9999
. $(VENV) ; cd ../build_doc/doc/sphinx/; python3 -m pyspelling -c $(SPHINXDIR)/spellingcheck.yaml -j $(shell nproc)
100100

101101
linkcheck: install
102-
. $(VENV) ; $(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
102+
. $(VENV) ; cd ../build_doc/doc/sphinx/; $(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
103103

104104
woke: woke-install
105105
woke *.rst **/*.rst --exit-1-on-failure \

0 commit comments

Comments
 (0)