hdoc-tools 0.9.26 → 0.9.27
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/hdoc-validate.js +5 -4
- package/package.json +1 -1
package/hdoc-validate.js
CHANGED
@@ -105,13 +105,14 @@
|
|
105
105
|
}
|
106
106
|
|
107
107
|
if (file_exists) {
|
108
|
-
const true_file = trueCasePathSync(file_name);
|
109
|
-
|
110
|
-
|
108
|
+
const true_file = trueCasePathSync(file_name).replace(source_path, '').replaceAll('\\', '/');
|
109
|
+
const relative_file = file_name.replace(source_path, '').replaceAll('\\', '/');
|
110
|
+
if (true_file !== relative_file) {
|
111
|
+
nav_errors.push(`Navigation path [${key}] for filename [${relative_file}] does not match filename case [${true_file}].`);
|
111
112
|
}
|
112
113
|
}
|
113
114
|
|
114
|
-
// Validate path
|
115
|
+
// Validate path spellings
|
115
116
|
const paths = key.split('/');
|
116
117
|
for (let i = 0; i < paths.length; i++) {
|
117
118
|
const path_words = paths[i].split('-');
|