Skip to content

Fix markdownlint: disable MD060 (conflicts with prettier), fix stray MD001#5121

Merged
btshrewsbury-viam merged 1 commit into
mainfrom
fix/markdownlint-md060-conflict
Jul 1, 2026
Merged

Fix markdownlint: disable MD060 (conflicts with prettier), fix stray MD001#5121
btshrewsbury-viam merged 1 commit into
mainfrom
fix/markdownlint-md060-conflict

Conversation

@btshrewsbury-viam

Copy link
Copy Markdown
Collaborator

What

Fix the repo-wide Check Markdown files (markdownlint) failure by disabling MD060/table-column-style, and fix the one unrelated MD001 heading error.

Why this started failing (no docs changed)

  • MD060/table-column-style was added in markdownlint v0.39.0 (2025-10-13) and ships enabled by default.
  • .markdownlint.yaml starts with default: true, so a newly added rule turns on automatically unless explicitly disabled.
  • CI runs ruzickap/action-my-markdown-linter@v1 (a floating tag; its bundled markdownlint-cli is renovate-bumped to 0.49.0 → markdownlint lib with MD060). When that version landed, the rule activated against tables that had been unchanged for months.
  • Those tables are formatted by prettier (a different style), and the prettier CI check passes on all of them — so MD060 directly conflicts with prettier. You can't satisfy both.

Result: 49 MD060 violations across 13 files appeared with zero content changes, failing on whatever PR ran CI next (e.g. #5116, #5118) even though those PRs never touched the affected files.

The fix

  • .markdownlint.yaml: add MD060: false, consistent with the existing prettier-driven rule exclusions (MD030, MD013, MD046, …). prettier stays the canonical table formatter.
  • docs/reference/components/motor/gpiostepper.md: promote ### Microstepping and speed math## (peer of the sibling ## Wiring example), fixing the lone MD001/heading-increment error. The heading text — and its anchor — are unchanged, so no links break.

Verification

  • markdownlint-cli@latest --config .markdownlint.yaml "docs/**/*.md"0 errors (was 50).
  • prettier --check still passes on the edited file.

Note

The Check Markdown files job is continue-on-error: true, so it was non-blocking by design — this makes it green rather than perma-red. Pinning the ruzickap/...@v1 action to a SHA later would prevent the next surprise-rule bump; disabling MD060 explicitly is robust regardless.

…ng skip

MD060/table-column-style is a newer default rule in markdownlint that
conflicts with prettier's table formatting. prettier is the repo's canonical
formatter and its CI check already passes on the 13 affected files, so
enforcing MD060 would fight it. Disable MD060, consistent with the other
prettier-driven rule exclusions already in .markdownlint.yaml (MD030, etc.).

Also promote the "Microstepping and speed math" heading in gpiostepper.md
from h3 to h2, fixing the one non-MD060 failure (MD001 heading-increment)
and making it a peer of the sibling "Wiring example" h2 section.

With both changes, markdownlint runs clean across docs/.
@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 37c5ce4
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6a453e3222bbd00007931fe8
😎 Deploy Preview https://deploy-preview-5121--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 41 (🟢 up 8 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Jul 1, 2026
@btshrewsbury-viam btshrewsbury-viam merged commit 720c722 into main Jul 1, 2026
14 checks passed
@btshrewsbury-viam btshrewsbury-viam deleted the fix/markdownlint-md060-conflict branch July 1, 2026 18:20
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants