-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add docs tooling to align with publishing to main site (#2484)
* docs: add markdownlint and some link checks alongside vale * docs: add link checker config and fix/update some links reported broken * docs: update markdownlint action * docs: fix markdown table formatting * docs: Unpin Vale version and pick up the latest
- Loading branch information
Showing
9 changed files
with
110 additions
and
31 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,37 @@ | ||
name: Documentation tests | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
markdownlint: | ||
name: markdownlint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DavidAnson/markdownlint-cli2-action@v15 | ||
with: | ||
config: .markdownlint.yaml | ||
globs: | | ||
docs/**/*.md | ||
README.md | ||
vale: | ||
name: vale action | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: errata-ai/vale-action@reviewdog | ||
with: | ||
files: '["README.md", "docs"]' | ||
filter_mode: file | ||
|
||
linkcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Markup Link Checker (mlc) | ||
uses: becheran/[email protected] | ||
with: | ||
args: ./docs |
This file was deleted.
Oops, something went wrong.
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,54 @@ | ||
--- | ||
# Default rules: https://github.com/github/super-linter/blob/master/TEMPLATES/.markdown-lint.yml | ||
|
||
# Rules by id | ||
|
||
# Unordered list style | ||
MD004: false | ||
|
||
# Unordered list indentation | ||
MD007: | ||
indent: 2 | ||
|
||
MD013: | ||
# TODO: Consider to decrease allowed line length | ||
line_length: 800 | ||
tables: false | ||
|
||
## Allow same headers in siblings | ||
MD024: | ||
siblings_only: true | ||
|
||
# Multiple top level headings in the same document | ||
MD025: | ||
front_matter_title: '' | ||
|
||
# Trailing punctuation in heading | ||
MD026: | ||
punctuation: '.,;:。,;:' | ||
|
||
# Ordered list item prefix | ||
MD029: false | ||
|
||
# Unordered lists inside of ordered lists | ||
MD030: false | ||
|
||
# Inline HTML | ||
MD033: false | ||
|
||
# No bare urls | ||
MD034: false | ||
|
||
# Emphasis used instead of a heading | ||
MD036: false | ||
|
||
# Disable "First line in file should be a top level heading" | ||
# We use uncommon format to add metadata. | ||
# TODO: Consider to use "YAML front matter". | ||
MD041: false | ||
|
||
# Rules by tags | ||
blank_lines: false | ||
|
||
MD046: false | ||
# code-block-style |
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,4 @@ | ||
# Ignore these links, we can't check them from this subproject | ||
ignore-links=["../*", "/docs/*"] | ||
# Path to the root folder used to resolve all relative paths | ||
root-dir="./docs" |
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