Automate contrib docs content linter (#44591)
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
This commit is contained in:
@@ -122,7 +122,7 @@ export const githubDocsFrontmatterConfig = {
|
||||
severity: 'error',
|
||||
'partial-markdown-files': false,
|
||||
},
|
||||
'frontmatter-format': {
|
||||
'frontmatter-schema': {
|
||||
// GHD012
|
||||
severity: 'error',
|
||||
'partial-markdown-files': false,
|
||||
@@ -214,7 +214,7 @@ export const searchReplaceConfig = {
|
||||
// - {{ octicon-plus An example label }}
|
||||
name: 'deprecated liquid syntax: octicon-<icon-name>',
|
||||
message:
|
||||
'The octicon liquid syntax used is deprecated. Use this format instead {% octicon "<octicon-name>" aria-label="<Octicon aria label>" %}',
|
||||
'The octicon liquid syntax used is deprecated. Use this format instead `octicon "<octicon-name>" aria-label="<Octicon aria label>"`',
|
||||
searchPattern: '/{{\\s*?octicon-([a-z-]+)(\\s[\\w\\s\\d-]+)?\\s*?}}/g',
|
||||
severity: 'error',
|
||||
'partial-markdown-files': true,
|
||||
|
||||
Reference in New Issue
Block a user