Skip to content

Commit

Permalink
ci: add markdownlint for the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoe committed Apr 8, 2024
1 parent 231b0e2 commit c1bb9ac
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: markdownlint
uses: nosborn/[email protected]
with:
files: docs
config_file: .markdownlint.yml
- uses: actions/setup-python@v5
with:
python-version: 3.x
cache: pip
cache-dependency-path: requirements-docs.txt
- run: pip install -r requirements-docs.txt
- run: mkdocs build
- uses: actions/upload-pages-artifact@v2
Expand Down
37 changes: 37 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
# Enable default rules
default: true

# MD007 - Unordered list indentation
# Sets nested list indents to 4 spaces instead of the default of 2.
# Required by Python-Markdown used by mkdocs
MD007:
indent: 4

# MD010 - No hard tabs
# No hard tabs allowed in docs. Use 4 spaces instead.
# This is disabled inline when used.
MD010: true

# MD013 - Line length
# Defaults to 80 characters.
MD013: false

# MD014 - Dollar signs used before commands without showing output
# Ignores terminal examples using dollar signs without any output examples after.
# These occur in multiple places throughout our docs.
MD014: false

# MD024 - Multiple headings with the same content
# Multiple identical headings in the document are not allowed
# This is disabled on all of the release notes pages in docs/release-notes
MD024: true

# MD033 - Inline HTML
# Triggered when raw HTML is used in a markdown document
# Disabled inline when used.
MD033: true

# MD041 - First line in a file should be a top-level heading
# This requires a top-level heading as the first line in every doc.
MD041: true

0 comments on commit c1bb9ac

Please sign in to comment.