aboutsummaryrefslogtreecommitdiff
path: root/Documentation/.mdl_style.rb
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-04-24 11:02:25 -0600
committerFelix Held <felix-coreboot@felixheld.de>2022-07-14 12:38:56 +0000
commit3144be76f403b14d2eff255e7ef93dec1303908a (patch)
tree8c0de26a3b169403624f3334513dd19e3769f702 /Documentation/.mdl_style.rb
parentbebdd4fb8a574c6fccbcf3e68ee8eff9ae0274b1 (diff)
Documentation: Add mdl style file
This adds a style file for the markdown linter mdl. The tool can be found on archive.org at the URL: https://web.archive.org/web/20220407032312/https://github.com/markdownlint/markdownlint This does 2 things: - Sets that line length limit to 72 characters as requested in the docs about writing the documentation. - Excludes several rules that were added for a particular markdown parser. My opinion is that these rules make the text versions of the markdown harder to read. To use this style file, run: $ mdl -s Documentation/.mdl_style.rb Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I98289492ae3e920d440f0e5c308a3590fb89d9fd Reviewed-on: https://review.coreboot.org/c/coreboot/+/63805 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <patrick@coreboot.org>
Diffstat (limited to 'Documentation/.mdl_style.rb')
-rw-r--r--Documentation/.mdl_style.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/.mdl_style.rb b/Documentation/.mdl_style.rb
new file mode 100644
index 0000000000..a02a64c1c9
--- /dev/null
+++ b/Documentation/.mdl_style.rb
@@ -0,0 +1,9 @@
+# See one of the following URLs for explanations of all the rules
+# https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
+# https://web.archive.org/web/20220424164542/https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
+
+all
+exclude_rule 'no-multiple-blanks'
+exclude_rule 'blanks-around-headers'
+exclude_rule 'blanks-around-lists'
+rule 'line-length', :line_length => 72