Skip to content

Commit

Permalink
Restore linkcheck and modify Makefile to run in the correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tarek-y-ismail committed Oct 3, 2024
1 parent a5158a8 commit 943caa4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/documentation-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/sphinx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 943caa4

Please sign in to comment.