-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub action on PR: markdownlint (#76)
Based on Swant's suggestion at #69 (comment) Co-authored-by: Joseph Price <[email protected]> Co-authored-by: Svante Bengtson <[email protected]>
- Loading branch information
1 parent
f917def
commit 2b26835
Showing
26 changed files
with
345 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
markdownlint: | ||
name: Check markdown for style issues | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
- run: npm i --prefer-offline | ||
|
||
- uses: xt0rted/markdownlint-problem-matcher@v1 | ||
- run: npm run lint:md | ||
- uses: xt0rted/markdownlint-problem-matcher@v1 | ||
if: success() || failure() | ||
with: | ||
action: remove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ _site | |
.jekyll-cache | ||
.jekyll-metadata | ||
vendor | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
default: true | ||
|
||
# MD003/heading-style/header-style - Heading style | ||
MD003: | ||
# Heading style | ||
style: atx | ||
|
||
# MD004/ul-style - Unordered list style | ||
MD004: | ||
# List style | ||
style: dash | ||
|
||
# MD009/no-trailing-spaces - Trailing spaces | ||
MD009: | ||
# Spaces for line break | ||
br_spaces: 0 | ||
# Allow spaces for empty lines in list items | ||
list_item_empty_lines: false | ||
# Include unnecessary breaks | ||
strict: false | ||
|
||
# MD013/line-length - Line length | ||
MD013: | ||
line_length: 78 | ||
code_blocks: false | ||
|
||
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content | ||
MD024: | ||
# Only check sibling headings | ||
siblings_only: false | ||
|
||
# MD033/no-inline-html - Inline HTML | ||
MD033: | ||
# Allowed elements | ||
allowed_elements: | ||
- sup | ||
- sub | ||
- br | ||
- kbd | ||
|
||
# MD035/hr-style - Horizontal rule style | ||
MD035: | ||
# Horizontal rule style | ||
style: "---" | ||
|
||
# MD042/no-empty-links - No empty links | ||
# This is checked by check-md instead | ||
MD042: false | ||
|
||
# MD044/proper-names - Proper names should have the correct capitalization | ||
MD044: | ||
# List of proper names | ||
names: | ||
- Libera.Chat | ||
- Libera Chat | ||
# Include code blocks | ||
code_blocks: false | ||
|
||
# MD046/code-block-style - Code block style | ||
MD046: | ||
# Block style | ||
style: fenced | ||
|
||
# MD048/code-fence-style - Code fence style | ||
MD048: | ||
# Code fence syle | ||
style: backtick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- markdownlint-disable MD033 MD041 --> | ||
{::nomarkdown}<div class="table">{:/} | ||
|
||
<table> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.