From 2ac2b8cc984de8c75fab7a49ee1a566cde2783cf Mon Sep 17 00:00:00 2001 From: jahn-junior Date: Wed, 19 Aug 2026 14:55:06 -0700 Subject: [PATCH 1/2] fix: exclude dir when linting Markdown --- docs/Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index d207fb9e..9b88eeed 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -116,11 +116,7 @@ lint-md: pymarkdownlnt-install @. $(DOCS_VENV); pymarkdownlnt \ --config $(DEV_DIR)/.pymarkdown.json \ --return-code-scheme explicit \ - scan \ - --recurse \ - --exclude=$(DEV_DIR)/** \ - --exclude=$(DOCS_VENVDIR)/** \ - $(DOCS_SOURCEDIR); \ + scan --recurse $(CHECK_PATH); \ status=$$?; \ if [ $$status -eq 1 ]; then \ echo "No Markdown files selected for linting"; \ From 5019c472a6ab34b8434a76c10aa6088db5682664 Mon Sep 17 00:00:00 2001 From: jahn-junior Date: Wed, 19 Aug 2026 14:57:23 -0700 Subject: [PATCH 2/2] docs: update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a20fe5e..3985520f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,12 @@ * Make removed URL check redirect-aware and add support for reusable workflow contexts * Exclude utility directories from builds and checks * Update link to documentation in README +* Exclude `_build` dir when linting Markdown ### Changed * `docs/conf.py` [#610](https://github.com/canonical/sphinx-stack/pull/610) -* `docs/Makefile` [#605](https://github.com/canonical/sphinx-stack/pull/605), [#610](https://github.com/canonical/sphinx-stack/pull/610) +* `docs/Makefile` [#605](https://github.com/canonical/sphinx-stack/pull/605), [#610](https://github.com/canonical/sphinx-stack/pull/610), [#628](https://github.com/canonical/sphinx-stack/pull/628) * `README.md` [#603](https://github.com/canonical/sphinx-stack/pull/603) * `.github/workflows/cla-check.yml` [#606](https://github.com/canonical/sphinx-stack/pull/606) * `.github/workflows/check-removed-urls.yml` [#612](https://github.com/canonical/sphinx-stack/pull/#612)