radiant-docs-validator 0.1.7 → 0.1.8
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/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2938,6 +2938,10 @@ async function validateMdxContent() {
|
|
|
2938
2938
|
const linkIndex = buildDocsLinkIndex(config, files);
|
|
2939
2939
|
for (const file of files) {
|
|
2940
2940
|
const relativePath = path.relative(DOCS_DIR, file);
|
|
2941
|
+
const normalizedFilePath = normalizeDocsFilePath(relativePath);
|
|
2942
|
+
if (!linkIndex.routableDocsFilePaths.has(normalizedFilePath)) {
|
|
2943
|
+
continue;
|
|
2944
|
+
}
|
|
2941
2945
|
try {
|
|
2942
2946
|
const content = fs.readFileSync(file, "utf-8");
|
|
2943
2947
|
const match = content.match(/^---\n([\s\S]*?)\n---/);
|