Skip to content

Commit f9cbb4e

Browse files
authored
Making some QUICK updates to the docs (oops!) (#341)
* Making some QUICK updates to the docs (oops!) I hope I didn't mess up any links or misplace an image! 😱 * push test * fix
1 parent c4e39e2 commit f9cbb4e

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

scripts/check-image-locations.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -290,30 +290,28 @@ async function main() {
290290
console.log('─'.repeat(40));
291291
console.log('MISSING IMAGES:\n');
292292
missingIssues.forEach(({ file, line, imagePath }) => {
293-
console.log(` 📄 ${file}:${line}`);
294-
console.log(` ${imagePath}\n`);
293+
console.log(` 📄 ${file}:${line}${imagePath}`);
295294
});
295+
console.log('');
296296
}
297297

298298
if (locationIssues.length > 0) {
299299
console.log('─'.repeat(40));
300300
console.log('MISPLACED IMAGES:\n');
301301
locationIssues.forEach(({ file, line, imagePath, expectedDir, actualDir }) => {
302-
console.log(` 📄 ${file}:${line}`);
303-
console.log(` ${imagePath}`);
304-
console.log(` Expected: ${expectedDir}/`);
305-
console.log(` Actual: ${actualDir}/\n`);
302+
console.log(` 📄 ${file}:${line}${imagePath}`);
303+
console.log(` Expected: ${expectedDir}/ | Actual: ${actualDir}/`);
306304
});
305+
console.log('');
307306
}
308307

309308
if (typeIssues.length > 0) {
310309
console.log('─'.repeat(40));
311310
console.log('INVALID FILE TYPES:\n');
312311
typeIssues.forEach(({ file, line, imagePath, message }) => {
313-
console.log(` 📄 ${file}:${line}`);
314-
console.log(` ${imagePath}`);
315-
console.log(` ${message}\n`);
312+
console.log(` 📄 ${file}:${line}${imagePath} (${message})`);
316313
});
314+
console.log('');
317315
}
318316
}
319317

scripts/check-links.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ async function main() {
348348
console.log('─'.repeat(40));
349349
console.log('BROKEN LINKS:\n');
350350
brokenLinks.forEach(({ file, url, line }) => {
351-
console.log(` 📄 ${file}:${line}`);
352-
console.log(` ${url}\n`);
351+
console.log(` 📄 ${file}:${line}${url}`);
353352
});
353+
console.log('');
354354
}
355355

356356
// Display orphaned pages details

0 commit comments

Comments
 (0)