From 08931734e0df6c2cf1109cd450451a309269d154 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 16 May 2023 16:03:19 +0800 Subject: [PATCH] fix markdown lint on CI (#114) Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/114 Reviewed-by: silverwind --- .gitea/workflows/lint.yml | 7 ++++--- .markdownlint.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .markdownlint.yaml diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index c2016ba..e5ced0a 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -8,7 +8,8 @@ jobs: name: lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + - name: install markdownlint-cli + run: npm install -g markdownlint-cli - name: lint - uses: https://github.com/articulate/actions-markdownlint@v1 - with: - files: '**/*.md' \ No newline at end of file + run: markdownlint '**/*.md' \ No newline at end of file diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..666f0e8 --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,18 @@ +commands-show-output: false +fenced-code-language: false +first-line-h1: false +header-increment: false +line-length: {code_blocks: false, tables: false, stern: true, line_length: -1} +no-alt-text: false +no-bare-urls: false +no-blanks-blockquote: false +no-duplicate-header: {allow_different_nesting: true} +no-emphasis-as-header: false +no-empty-links: false +no-hard-tabs: {code_blocks: false} +no-inline-html: false +no-space-in-code: false +no-space-in-emphasis: false +no-trailing-punctuation: false +no-trailing-spaces: {br_spaces: 0} +single-h1: false \ No newline at end of file