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 = {/*, */}