Commit Graph

12 Commits

Author SHA1 Message Date
David Karlsson 50b97b01d5 lint: disable warning for reference links with shortcut syntax
The shortcut syntax is used by GitHub-style alerts and trigger a lint
warning.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-15 22:06:22 +02:00
David Karlsson b75fe78d4f lint: enable markdownlint MD022 / blanks-around-headings
Headings should be surrounded by blank lines

Rationale: Aside from aesthetic reasons, some parsers, including kramdown, will not parse headings that don't have a blank line before, and will parse them as regular text.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-17 09:36:28 +02:00
David Karlsson dc379cf085 test: add lint rule for empty links
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-01 16:01:46 +01:00
David Karlsson 6225724f32 test: add lint rule for trailing punctuation in headings
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-01 15:57:19 +01:00
David Karlsson 7eb5ad6c38 test: add lint rule for single h1
We should never have more than one h1 on a page.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-01 15:45:56 +01:00
David Karlsson 078a817e12 test: add lint rule for heading start
Heading markup should start on the first column of a line, otherwise we
risk it being rendered as a paragraph, per the markdown spec.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-01 15:45:56 +01:00
David Karlsson e1ac3a4f36 test: add lint rules for tables
Formatting for tables wasn't guarded by markdownlint validation rules,
which increases the risk of releasing incorrectly formatted tables.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-01 15:45:53 +01:00
David Karlsson b7111d05ec test: require language tag for code blocks
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-11-01 10:52:00 +01:00
David Karlsson b758af9775 lint: add check for missing link definitions
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-09-16 21:41:48 +02:00
Justin Chadwell ebd4a33866 Add linting information to CONTRIBUTING.md
This adds information on how the docs use linting, and more detailed
instructions on how to enable it in an IDE, using VSCode as a concrete
and widespread example.

Additionally, to do this, we add a duplicate style config for
markdownlint in JSON format for the Node.js implementation of
markdownlint that is used by various editor plugins. These both
implement the same core set of warnings, and appear to function
identically.
2022-08-03 09:58:01 +01:00
CrazyMax 9c296afa3e
switch to ruby markdownlint and add ci validation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-25 12:17:09 +02:00
Usha Mandya 8a93a1ccff add mdlint json file to fix yaml copy/paste issues 2020-02-17 15:36:32 +00:00