|
114 | 114 | }, |
115 | 115 | ], |
116 | 116 | "customManagers": [ |
117 | | - // cdnjs URLs in Jekyll config files and front matter, with optional adjacent SRI hashes. |
| 117 | + // cdnjs URLs in Jekyll config files, front matter, data YAML, and simple HTML attrs, with optional adjacent SRI hashes. |
118 | 118 | { |
119 | 119 | "customType": "regex", |
120 | 120 | "managerFilePatterns": [ |
121 | | - "/^(?:_config(?:_[^/]+)?[.]ya?ml|_layouts/.*[.]html|[^/]+[.](?:html|md)|blog/.*[.]html|_posts/.*[.]md|docs/.*[.]md)$/", |
| 121 | + "/^(?:_config(?:_[^/]+)?[.]ya?ml|_data/.*[.]ya?ml|_layouts/.*[.]html|[^/]+[.](?:html|md)|blog/.*[.]html|_posts/.*[.]md|docs/.*[.]md|gh-pages-template/(?:_data/.*[.]ya?ml|.*[.](?:html|md)))$/", |
122 | 122 | ], |
123 | 123 | "matchStrings": [ |
124 | | - "(?:href:\\s*[\"']|-\\s*[\"'])(?:https?:)?//cdnjs\\.cloudflare\\.com/ajax/libs/(?<depName>[^/\"'\\s]+)/(?<currentValue>[^/\"'\\s]+)/(?<asset>[^\"'\\s?#]+)(?:\\?[^\"'\\s]*)?[\"'](?:\\s*\\r?\\n\\s*sri:\\s*[\"'](?<currentDigest>sha(?:256|384|512)-[^\"']+)[\"'])?", |
| 124 | + "(?:(?:href|src):\\s*[\"']?|-\\s*[\"']?|(?:href|src)=[\"'])(?:https?:)?//cdnjs\\.cloudflare\\.com/ajax/libs/(?<depName>[^/\"'\\s]+)/(?<currentValue>[^/\"'\\s]+)/(?<asset>[^\"'\\s?#]+)(?:\\?[^\"'\\s]*)?[\"']?(?:\\s*\\r?\\n\\s*sri:\\s*[\"'](?<currentDigest>sha(?:256|384|512)-[^\"']+)[\"'])?", |
125 | 125 | ], |
126 | 126 | "datasourceTemplate": "cdnjs", |
127 | 127 | "packageNameTemplate": "{{depName}}/{{asset}}", |
128 | 128 | "versioningTemplate": "semver", |
129 | 129 | }, |
130 | | - // Versioned npm CDN href/scalar entries in Jekyll config files and front matter without SRI. |
| 130 | + // Versioned npm CDN href/src/scalar entries in Jekyll config files, front matter, data YAML, and simple HTML attrs without SRI. |
131 | 131 | { |
132 | 132 | "customType": "regex", |
133 | 133 | "managerFilePatterns": [ |
134 | | - "/^(?:_config(?:_[^/]+)?[.]ya?ml|_layouts/.*[.]html|[^/]+[.](?:html|md)|blog/.*[.]html|_posts/.*[.]md|docs/.*[.]md)$/", |
| 134 | + "/^(?:_config(?:_[^/]+)?[.]ya?ml|_data/.*[.]ya?ml|_layouts/.*[.]html|[^/]+[.](?:html|md)|blog/.*[.]html|_posts/.*[.]md|docs/.*[.]md|gh-pages-template/(?:_data/.*[.]ya?ml|.*[.](?:html|md)))$/", |
135 | 135 | ], |
136 | 136 | "matchStrings": [ |
137 | | - "href:\\s*[\"']https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?<depName>(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?<currentValue>[^/\"'\\s?#]+)", |
138 | | - "(?:^|\\r?\\n)[ \\t]*-[ \\t]*[\"']https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?<depName>(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?<currentValue>[^/\"'\\s?#]+)", |
| 137 | + "(?:(?:href|src):\\s*[\"']?|(?:href|src)=[\"'])https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?<depName>(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?<currentValue>[^/\"'\\s?#]+)", |
| 138 | + "(?:^|\\r?\\n)[ \\t]*-[ \\t]*[\"']?https://(?:cdn\\.jsdelivr\\.net/npm|unpkg\\.com)/(?<depName>(?:@[^@/\"'\\s]+/)?[^@/\"'\\s]+)@(?<currentValue>[^/\"'\\s?#]+)", |
139 | 139 | ], |
140 | 140 | "datasourceTemplate": "npm", |
141 | 141 | "versioningTemplate": "npm", |
142 | 142 | }, |
| 143 | + // Annotated YAML version fields such as _data/licenses.yml in LizardByte.github.io |
| 144 | + { |
| 145 | + "customType": "regex", |
| 146 | + "managerFilePatterns": [ |
| 147 | + "/^(?:_data/.*[.]ya?ml|gh-pages-template/_data/.*[.]ya?ml)$/", |
| 148 | + ], |
| 149 | + "matchStrings": [ |
| 150 | + "# renovate: datasource=(?<datasource>[a-zA-Z0-9-._]+?) depName=(?<depName>[^\\s]+?)(?:(?:[ \\t]+|\\s*\\r?\\n\\s*#\\s*)packageName=(?<packageName>[^\\s]+?))?(?:(?:[ \\t]+|\\s*\\r?\\n\\s*#\\s*)versioning=(?<versioning>[^\\s]+?))?\\s+version:\\s*[\"']?(?<currentValue>[^\"'\\s]+)[\"']?", |
| 151 | + ], |
| 152 | + "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{/if}}", |
| 153 | + }, |
143 | 154 | // CPM Package Lock |
144 | 155 | { |
145 | 156 | "customType": "regex", |
|
0 commit comments