@mintlify/cli 4.0.815 → 4.0.817
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/mdxAccessibility.js
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { coreRemark } from '@mintlify/common';
|
|
11
|
-
import { categorizeFilePaths } from '@mintlify/prebuild';
|
|
11
|
+
import { categorizeFilePaths, getMintIgnore } from '@mintlify/prebuild';
|
|
12
12
|
import fs from 'fs';
|
|
13
13
|
import path from 'path';
|
|
14
14
|
import { visit } from 'unist-util-visit';
|
|
@@ -83,7 +83,8 @@ const checkAltAttributes = (filePath, content) => {
|
|
|
83
83
|
return issues;
|
|
84
84
|
};
|
|
85
85
|
export const checkMdxAccessibility = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (baseDir = process.cwd()) {
|
|
86
|
-
const
|
|
86
|
+
const mintIgnore = yield getMintIgnore(baseDir);
|
|
87
|
+
const { contentFilenames } = yield categorizeFilePaths(baseDir, mintIgnore);
|
|
87
88
|
const mdxFiles = [];
|
|
88
89
|
for (const file of contentFilenames) {
|
|
89
90
|
mdxFiles.push(path.join(baseDir, file));
|