From dc4b13c604489f456c81f460472fa74c9a7e6a5d Mon Sep 17 00:00:00 2001 From: Kyle Robbertze Date: Fri, 21 Mar 2025 10:54:35 +0000 Subject: [PATCH] ci: update vale to support MDX (#3148) Closes: #3147 --- .github/workflows/docs.yml | 9 ++++++++- .vale.ini | 7 ------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ed03e588c..bece310a1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -34,6 +34,13 @@ jobs: restore-keys: | ${{ runner.os }}-docs-lint-tools + - uses: actions/setup-node@v3 + with: + node-version: "18" + + - name: Install dependencies + run: npm install -g mdx2vast + - name: Install Vale run: | python -m venv venv && source venv/bin/activate @@ -43,7 +50,7 @@ jobs: errata-ai/vale \ vale_{version}_Linux_64-bit.tar.gz --extract vale \ /usr/local/bin/vale \ - --version v3.9.6 \ + --version v3.10.0 \ --version-file '{destination}.version' - name: Add annotations matchers diff --git a/.vale.ini b/.vale.ini index a8d3de823..55868848a 100644 --- a/.vale.ini +++ b/.vale.ini @@ -10,10 +10,6 @@ Vocab = Docs IgnoredScopes = code, tt, img, url, a SkippedScopes = script, style, pre, figure, code -[formats] -# This is a workaround until https://github.com/errata-ai/vale/issues/841 is fixed -mdx = md - [*.{md,mdx}] BasedOnStyles = Vale, Microsoft, LibreTime @@ -26,6 +22,3 @@ TokenIgnores = (<\/?[A-Z].+>), (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\ Microsoft.GeneralURL = False Microsoft.RangeFormat = False Vale.Spelling = False - -[*.mdx] -CommentDelimiters = {/*, */}