From 523f21ed061a1f7a2e25cf3bd522147d1c9afaf2 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 30 May 2026 17:34:37 -0400 Subject: [PATCH] feat(renovate): custom managers for jekyll configs and front matter --- renovate-config.json5 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/renovate-config.json5 b/renovate-config.json5 index 6f97be8c..7923a2e9 100644 --- a/renovate-config.json5 +++ b/renovate-config.json5 @@ -108,6 +108,31 @@ }, ], "customManagers": [ + // cdnjs URLs in Jekyll config files and front matter, with optional adjacent SRI hashes. + { + "customType": "regex", + "managerFilePatterns": [ + "/^(?:_config(?:_[^/]+)?[.]ya?ml|_layouts/.*[.]html|[^/]+[.](?:html|md)|blog/.*[.]html|_posts/.*[.]md|docs/.*[.]md)$/", + ], + "matchStrings": [ + "(?:href:\\s*[\"']|-\\s*[\"'])(?:https?:)?//cdnjs\\.cloudflare\\.com/ajax/libs/(?[^/\"'\\s]+)/(?[^/\"'\\s]+)/(?[^\"'\\s?#]+)(?:\\?[^\"'\\s]*)?[\"'](?:\\s*\\r?\\n\\s*sri:\\s*[\"'](?sha(?:256|384|512)-[^\"']+)[\"'])?", + ], + "datasourceTemplate": "cdnjs", + "packageNameTemplate": "{{depName}}/{{asset}}", + "versioningTemplate": "semver", + }, + // Versioned npm CDN scalar entries in Jekyll config files and front matter without SRI. + { + "customType": "regex", + "managerFilePatterns": [ + "/^(?:_config(?:_[^/]+)?[.]ya?ml|_layouts/.*[.]html|[^/]+[.](?:html|md)|blog/.*[.]html|_posts/.*[.]md|docs/.*[.]md)$/", + ], + "matchStrings": [ + "(?:^|\\r?\\n)[ \\t]*-[ \\t]*[\"']https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?[^/\"'\\s?#]+)", + ], + "datasourceTemplate": "npm", + "versioningTemplate": "npm", + }, // CPM Package Lock { "customType": "regex",