@mintlify/cli 4.0.814 → 4.0.816
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/.turbo/turbo-build.log +0 -0
- package/LICENSE +93 -0
- package/bin/index.js +0 -0
- package/bin/mdxAccessibility.js +3 -2
- package/bin/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +7 -6
- package/src/mdxAccessibility.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.816",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@inquirer/prompts": "^7.9.0",
|
|
43
|
-
"@mintlify/common": "1.0.
|
|
44
|
-
"@mintlify/link-rot": "3.0.
|
|
43
|
+
"@mintlify/common": "1.0.613",
|
|
44
|
+
"@mintlify/link-rot": "3.0.756",
|
|
45
45
|
"@mintlify/models": "0.0.241",
|
|
46
|
-
"@mintlify/prebuild": "1.0.
|
|
47
|
-
"@mintlify/previewing": "4.0.
|
|
46
|
+
"@mintlify/prebuild": "1.0.742",
|
|
47
|
+
"@mintlify/previewing": "4.0.792",
|
|
48
48
|
"@mintlify/validation": "0.1.524",
|
|
49
49
|
"adm-zip": "^0.5.10",
|
|
50
50
|
"chalk": "^5.2.0",
|
|
@@ -80,5 +80,6 @@
|
|
|
80
80
|
"typescript": "^5.5.3",
|
|
81
81
|
"vitest": "^2.0.4",
|
|
82
82
|
"vitest-mock-process": "^1.0.4"
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
|
+
"gitHead": "7c6382cb44d1533342c240f6a74344d47b77e50d"
|
|
84
85
|
}
|
package/src/mdxAccessibility.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { coreRemark } from '@mintlify/common';
|
|
2
|
-
import { categorizeFilePaths } from '@mintlify/prebuild';
|
|
2
|
+
import { categorizeFilePaths, getMintIgnore } from '@mintlify/prebuild';
|
|
3
3
|
import fs from 'fs';
|
|
4
4
|
import type { Root, Text } from 'mdast';
|
|
5
5
|
import type { MdxJsxFlowElement } from 'mdast-util-mdx-jsx';
|
|
@@ -102,7 +102,8 @@ const checkAltAttributes = (filePath: string, content: string): AccessibilityFix
|
|
|
102
102
|
export const checkMdxAccessibility = async (
|
|
103
103
|
baseDir: string = process.cwd()
|
|
104
104
|
): Promise<MdxAccessibilityResult> => {
|
|
105
|
-
const
|
|
105
|
+
const mintIgnore = await getMintIgnore(baseDir);
|
|
106
|
+
const { contentFilenames } = await categorizeFilePaths(baseDir, mintIgnore);
|
|
106
107
|
const mdxFiles: string[] = [];
|
|
107
108
|
for (const file of contentFilenames) {
|
|
108
109
|
mdxFiles.push(path.join(baseDir, file));
|