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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. 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---/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "radiant-docs-validator",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Shared validation for Radiant documentation repositories",
5
5
  "type": "module",
6
6
  "scripts": {