diff --git a/.github/workflows/automatic-doc-checks.yml b/.github/workflows/automatic-doc-checks.yml index 173f8e03..5125782a 100644 --- a/.github/workflows/automatic-doc-checks.yml +++ b/.github/workflows/automatic-doc-checks.yml @@ -37,13 +37,15 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: woke - uses: get-woke/woke-action@v0 - with: - # Cause the check to fail on any broke rules - fail-on-error: true - workdir: . - woke-args: "*.rst **/*.rst -c https://github.com/canonical-web-and-design/Inclusive-naming/raw/main/config.yml" + - name: Install the doc framework + working-directory: . + run: | + make install + + - name: Run incluse-language checker + working-directory: . + run: | + make woke linkcheck: name: Link check diff --git a/Makefile b/Makefile index d091d074..dcf383a4 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ linkcheck: . $(VENV) ; $(SPHINXBUILD) -c . -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" woke: - type woke >/dev/null 2>&1 || { snap install woke; exit 1; } + type woke >/dev/null 2>&1 || { sudo snap install woke; } woke *.rst **/*.rst -c https://github.com/canonical-web-and-design/Inclusive-naming/raw/main/config.yml .PHONY: help Makefile