Skip to content

DOCS-3005: Update Vale to add native MDX processing - #3014

Open
ctauchen wants to merge 1 commit into
tigera:mainfrom
ctauchen:DOCS-3005-vale-native-mdx
Open

DOCS-3005: Update Vale to add native MDX processing#3014
ctauchen wants to merge 1 commit into
tigera:mainfrom
ctauchen:DOCS-3005-vale-native-mdx

Conversation

@ctauchen

@ctauchen ctauchen commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Vale 3.18 added native MDX parsing, so the community MDX package and mdx2vast are no longer required.

  • Remove Packages = MDX from .vale.ini.
  • Drop the Install mdx2vast globally CI step and its mention in .github/copilot-instructions.md.
  • Drop the mdx2vast prerequisite from scripts/vale-lint.sh.

Verified locally that lint output is identical with and without Packages = MDX across calico/, calico-enterprise/, and calico-cloud/.

https://tigera.atlassian.net/browse/DOCS-3005

…atively

Vale 3.18 added native MDX parsing, so the community MDX package and
mdx2vast are no longer needed. Removing Packages = MDX from .vale.ini
and the mdx2vast install step from CI produces identical lint output
(verified against calico/, calico-enterprise/, and calico-cloud/).
@ctauchen
ctauchen requested a review from a team as a code owner September 4, 2026 19:01
Copilot AI lite review requested due to automatic review settings September 4, 2026 19:01
@netlify

netlify Bot commented Sep 4, 2026

Copy link
Copy Markdown

Deploy Preview for calico-docs-preview-next ready!

Name Link
🔨 Latest commit 110d2c2
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/6a9b158813d0b800081c2615
😎 Deploy Preview https://deploy-preview-3014--calico-docs-preview-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@netlify

netlify Bot commented Sep 4, 2026

Copy link
Copy Markdown

Deploy Preview succeeded!

Built without sensitive environment variables

Name Link
🔨 Latest commit 110d2c2
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/6a9b158813d0b800081c2611
😎 Deploy Preview https://deploy-preview-3014--tigera.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: 85 (🔴 down 10 from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

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

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.

🟡 Changes recommended

The updated scripts/vale-lint.sh prerequisites comment no longer documents perl (which the script requires) and should clarify the minimum Vale version expectation after switching to native MDX parsing.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the documentation linting setup to rely on Vale’s native MDX parsing (introduced in Vale 3.18), removing the now-unnecessary community MDX package and mdx2vast dependency across local and CI linting flows.

Changes:

  • Removed Packages = MDX from .vale.ini to stop using the external MDX package.
  • Removed the CI step that globally installs mdx2vast.
  • Updated the local Vale wrapper script and contributor instructions to drop mdx2vast as a prerequisite.
File summaries
File Description
scripts/vale-lint.sh Removes mdx2vast dependency checks/prereqs and updates rationale for MDX variable substitution.
.vale.ini Removes the MDX package configuration and updates related comments.
.github/workflows/vale.yml Removes the mdx2vast global install step from Vale CI.
.github/copilot-instructions.md Removes mention of the mdx2vast global prerequisite from repo instructions.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread scripts/vale-lint.sh
Comment on lines 10 to 12
# Prerequisites:
# brew install vale ripgrep
# npm install -g mdx2vast
# vale sync
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.

2 participants