diff --git a/.github/workflows/docs-accessibility.yml b/.github/workflows/docs-accessibility.yml new file mode 100644 index 00000000000..b4367da81e5 --- /dev/null +++ b/.github/workflows/docs-accessibility.yml @@ -0,0 +1,21 @@ +name: Docs Accessibility + +on: + push: + paths: + - '**/*.md' + pull_request: + paths: + - '**/*.md' + +jobs: + lint: + name: "Check Docs Accessibility" + runs-on: ubuntu-latest + # Pull requests from the same repository won't trigger this checks as they were already triggered by the push + if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) + steps: + - name: Clone the code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Run check + run: make test-docs-accessibility diff --git a/Makefile b/Makefile index 6c21602d513..8b61b0cdc25 100644 --- a/Makefile +++ b/Makefile @@ -234,6 +234,10 @@ test-external-plugin: install ## Run tests for external plugin test-spaces: ## Run the trailing spaces check ./test/check_spaces.sh +.PHONY: test-docs-accessibility +test-docs-accessibility: ## Run the documentation accessibility check + ./test/check_docs_accessibility.sh + ## TODO: Remove me when go/v4 plugin be removed ## Deprecated .PHONY: test-legacy diff --git a/docs/book/src/cronjob-tutorial/cronjob-tutorial.md b/docs/book/src/cronjob-tutorial/cronjob-tutorial.md index f87ae89d94c..d958fb8e4a5 100644 --- a/docs/book/src/cronjob-tutorial/cronjob-tutorial.md +++ b/docs/book/src/cronjob-tutorial/cronjob-tutorial.md @@ -19,9 +19,9 @@ once, seeing them to completion. Instead of trying to tackle rewriting the Job controller as well, we'll use this as an opportunity to see how to interact with external types. -