Skip to content

build: run docs-clean as part of clean target - #594

Merged
lengau merged 2 commits into
mainfrom
work/clean-docs
Aug 19, 2026
Merged

build: run docs-clean as part of clean target#594
lengau merged 2 commits into
mainfrom
work/clean-docs

Conversation

@mr-cal

@mr-cal mr-cal commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Other top-level targets, like make lint, target the docs. make clean should follow the same pattern.

I was having an issue where make lint-docs was only failing in CI. The problem was that docs/_dev/styles/ was out-of-date and make clean wasn't cleaning it.

Source: canonical/snapcraft#6391 (comment)


  • I've followed the contribution guidelines.
  • I've signed the CLA.
  • I've successfully run make lint && make test.
  • I've added or updated any relevant documentation.
  • In documents I changed, I added a meta description if one was missing.
  • I've updated the relevant release notes.

Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Copilot AI lite review requested due to automatic review settings August 19, 2026 13:33
@mr-cal
mr-cal marked this pull request as ready for review August 19, 2026 13:39
@mr-cal
mr-cal requested a review from a team August 19, 2026 13:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the top-level make clean target so it also cleans documentation build/dev artifacts (via docs-clean), aligning clean with other top-level targets that already interact with the docs tooling.

Changes:

  • Make clean depend on docs-clean so doc dev artifacts (e.g., docs/_dev/styles/) are removed as part of a standard clean.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread common.mk

@lengau lengau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lengau
lengau merged commit 00e6976 into main Aug 19, 2026
17 checks passed
@lengau
lengau deleted the work/clean-docs branch August 19, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants