diff --git a/.github/workflows/markdown_linter.yml b/.github/workflows/markdown_linter.yml index 88b4cde..91ee207 100644 --- a/.github/workflows/markdown_linter.yml +++ b/.github/workflows/markdown_linter.yml @@ -5,7 +5,7 @@ on: pull_request: {} # Scan mainline branches and report all findings: push: - branches: ["main"] + branches: ["master", "main"] jobs: markdown-lint-check: @@ -19,5 +19,5 @@ jobs: uses: nosborn/github-action-markdown-cli@v2.0.0 with: files: './1.0*' - config_file: ".markdownlint.jsonc" + config_file: ".markdownlint.json" ignore_files: "tools, templates, images" \ No newline at end of file diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..3297aa1 --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,62 @@ +{ + "//comment": "https://github.com/DavidAnson/markdownlint/blob/main/.markdownlint.json", + "blanks-around-fences": false, + "blanks-around-headings": false, + "blanks-around-lists": false, + "code-block-style": { + "style": "fenced" + }, + "code-fence-style": { + "style": "backtick" + }, + "commands-show-output": false, + "emphasis-style": { + "style": "asterisk" + }, + "extended-ascii": { + "ascii-only": true + }, + "fenced-code-language": false, + "first-line-heading": false, + "heading-increment": false, + "heading-style": false, + "hr-style": { + "style": "---" + }, + "line-length": false, + "link-image-style": { + "collapsed": false, + "shortcut": false, + "url_inline": false + }, + "no-bare-urls": false, + "no-duplicate-heading": { + "siblings_only": true + }, + "no-multiple-blanks": false, + "no-trailing-punctuation": false, + "ol-prefix": { + "style": "ordered" + }, + "proper-names": { + "code_blocks": false, + "names": [ + "Cake.Markdownlint", + "CommonMark", + "JavaScript", + "Markdown", + "markdown-it", + "markdownlint", + "Node.js" + ] + }, + "reference-links-images": { + "shortcut_syntax": true + }, + "single-title": false, + "single-trailing-newline": false, + "strong-style": { + "style": "asterisk" + }, + "ul-style": false +} diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc deleted file mode 100644 index f6f3d80..0000000 --- a/.markdownlint.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -{ - // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md - - "MD004": {"style": "asterisk"}, // ul-style - "MD007": {"indent": "4"}, // ul-style - "MD013": false, // line-length - "MD024": {"allow_different_nesting": true}, // no-duplicate-header - "MD026": {"punctuation": ".,;:"}, // no-trailing-punctuation (allows !?) - "MD033": false, // no-inline-html - "MD034": false, // bare URLs - "MD035": {"style": "---"}, // hr-style - "MD036": {"punctuation": ".,;:!。"}, // no-emphasis-as-header - "MD041": false, // first-line-h1 - "MD046": {"style": "fenced"} , // code-block-style - "MD049": {"style": "underscore"}, // emphasis-style - "MD050": {"style": "asterisk"} // strong-style - - - } \ No newline at end of file