mirror of
https://github.com/kdeldycke/awesome-falsehood.git
synced 2025-02-17 15:56:01 -05:00
Lint markdown in addition to awesome list.
This commit is contained in:
parent
9ddbb6eb59
commit
3a6943843b
2 changed files with 28 additions and 5 deletions
13
.github/markdown-lint.yaml
vendored
Normal file
13
.github/markdown-lint.yaml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# See example at: https://github.com/avto-dev/markdown-lint/blob/master/lint/config/changelog.yml
|
||||||
|
|
||||||
|
# Line length <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013>
|
||||||
|
# XXX Temporary disabled because of line continuation edge-case. See:
|
||||||
|
# https://github.com/DavidAnson/markdownlint/issues/302
|
||||||
|
MD013: false
|
||||||
|
|
||||||
|
# Inline HTML <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md033>
|
||||||
|
# is allowed for beautiful rendering on GitHub.
|
||||||
|
MD033:
|
||||||
|
# Whitelist some elements for beautiful rendering on GitHub.
|
||||||
|
allowed_elements:
|
||||||
|
- 'img'
|
20
.github/workflows/lint.yaml
vendored
20
.github/workflows/lint.yaml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Lint Awesome List
|
name: Lint
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -8,12 +8,22 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
lint:
|
lint-markdown:
|
||||||
name: Lint
|
name: Lint markdown
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2.3.1
|
||||||
|
- uses: avto-dev/markdown-lint@v1.3.1
|
||||||
|
with:
|
||||||
|
config: '.github/markdown-lint.yaml'
|
||||||
|
args: './**/*.md'
|
||||||
|
|
||||||
|
lint-awesome:
|
||||||
|
name: Lint Awesome list
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.1
|
||||||
with:
|
with:
|
||||||
# Fetch all history to please linter's age checks.
|
# Fetch all history to please linter's age checks.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: max/awesome-lint@master
|
- uses: max/awesome-lint@v2.0.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue