-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add markdownlint config and action for V2 (#2369)
* fix markdown errors * add markdownlint action and config * fix action * rename config file * fix ignore paths * fix warnings * disable MD033 and MD045 locally
- Loading branch information
Showing
8 changed files
with
154 additions
and
49 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,29 @@ | ||
name: Markdown Linting | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'future3/**' | ||
paths: | ||
- '**.md' | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
paths: | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Linting markdown | ||
uses: DavidAnson/markdownlint-cli2-action@v15 | ||
with: | ||
config: .markdownlint-cli2.yaml | ||
#continue-on-error: true |
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,56 @@ | ||
# | ||
# markdownlint-cli2 configuration, see https://github.com/DavidAnson/markdownlint-cli2?tab=readme-ov-file#configuration | ||
# | ||
|
||
# rules, see https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md | ||
config: | ||
line-length: false | ||
# ignore dollar signs | ||
commands-show-output: false | ||
no-trailing-punctuation: false | ||
no-duplicate-heading: | ||
siblings_only: true | ||
# allow some tags we use for formatting | ||
no-inline-html: | ||
allowed_elements: [ "details", "summary" ] | ||
|
||
# Include a custom rule package | ||
#customRules: | ||
# - markdownlint-rule-titlecase | ||
|
||
# Fix no fixable errors | ||
fix: false | ||
|
||
# Define a custom front matter pattern | ||
#frontMatter: "<head>[^]*<\/head>" | ||
|
||
# Define glob expressions to use (only valid at root) | ||
globs: | ||
- "**.md" | ||
|
||
# Define glob expressions to ignore | ||
ignores: | ||
- "htdocs/**" | ||
|
||
# Use a plugin to recognize math | ||
#markdownItPlugins: | ||
# - | ||
# - "@iktakahiro/markdown-it-katex" | ||
|
||
# Additional paths to resolve module locations from | ||
#modulePaths: | ||
# - "./modules" | ||
|
||
# Enable inline config comments | ||
noInlineConfig: false | ||
|
||
# Disable progress on stdout (only valid at root) | ||
noProgress: true | ||
|
||
# Use a specific formatter (only valid at root) | ||
#outputFormatters: | ||
# - | ||
# - markdownlint-cli2-formatter-default | ||
|
||
# Show found files on stdout (only valid at root) | ||
showFound: true |
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.