From a164e216a145a18027b4c8c41a9520a9192c14ae Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sun, 8 Mar 2026 10:04:52 +0100 Subject: [PATCH] Include CV sidebar in upstream drift checks --- scripts/check-upstream-widget-drift.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/check-upstream-widget-drift.mjs b/scripts/check-upstream-widget-drift.mjs index 971a722..46cff06 100644 --- a/scripts/check-upstream-widget-drift.mjs +++ b/scripts/check-upstream-widget-drift.mjs @@ -40,11 +40,17 @@ const targets = [ localPath: "_includes/components/homepage-sidebar.njk", mirrorPath: "theme/_includes/components/homepage-sidebar.njk", }, + { + name: "sidebar-cv", + upstreamPath: "_includes/components/cv-sidebar.njk", + localPath: "_includes/components/cv-sidebar.njk", + mirrorPath: "theme/_includes/components/cv-sidebar.njk", + }, ]; function printHelp() { console.log(`Usage: node scripts/check-upstream-widget-drift.mjs [options]\n\nOptions:\n --ref= Upstream branch/tag/sha to compare against (default: ${DEFAULT_REF})\n --show-diff Print unified diff when drift is found\n --strict Exit with code 1 when drift is found\n -h, --help Show this help\n\nChecks:\n - Recent Posts widgets (listing + post) - - Sidebar wrappers (listing + post + homepage)\n\nExamples:\n npm run check:upstream-widgets\n npm run check:upstream-widgets -- --show-diff\n npm run check:upstream-widgets -- --ref=main --strict`); + - Sidebar wrappers (listing + post + homepage + cv)\n\nExamples:\n npm run check:upstream-widgets\n npm run check:upstream-widgets -- --show-diff\n npm run check:upstream-widgets -- --ref=main --strict`); } function normalize(content) {