-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.markdownlint-cli2.yaml
More file actions
71 lines (61 loc) · 2.77 KB
/
.markdownlint-cli2.yaml
File metadata and controls
71 lines (61 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# markdownlint-cli2 configuration
# https://github.com/DavidAnson/markdownlint-cli2#configuration
#
# Rule reference: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
# All rules are enabled by default. Rules below are explicitly disabled or
# reconfigured for this repo's content and Just the Docs conventions.
config:
# MD013 — Line length
# Disabled: long lines are common in tables, code blocks, and front matter.
MD013: false
# MD022 — Blanks around headings
# Disabled: JTD/Kramdown attribute syntax ({: .no_toc}, {: .no_toc .text-delta})
# appears directly beneath headings with no blank line. This is correct JTD
# syntax; markdownlint cannot distinguish it from a real violation.
MD022: false
# MD024 — Multiple headings with the same content
# Disabled: reference pages legitimately repeat heading names across sections
# (e.g., "Parameters" appears under multiple service sections).
MD024: false
# MD025 — Single title / single H1
# Disabled: JTD renders the title: front matter key as the page H1. Pages that
# also include an H1 in the body (e.g., for the {: .no_toc} styling pattern)
# correctly have two H1s in the raw Markdown source. This is the expected JTD
# pattern and not an error.
MD025: false
# MD029 — Ordered list item prefix
# Disabled: legacy docs use continuation numbering across code blocks (e.g.,
# steps 1–7, then a code block, then steps 8–13). This is intentional
# sequential numbering and not an error.
MD029: false
# MD033 — Inline HTML
# Disabled: JTD callout syntax ({: .note }, {: .no_toc }) and some layout
# features require inline HTML and Kramdown attribute syntax.
MD033: false
# MD041 — First line should be a top-level heading
# Disabled: JTD pages use the title: front matter key as the H1 heading.
# The first line of body content is typically the TOC block or a paragraph.
MD041: false
# Glob patterns for files and directories to exclude from linting.
# markdownlint-cli2 uses the same glob syntax as .gitignore.
ignores:
# Build output and dependencies — never lint generated or vendored files.
- "_guide_preview/**"
- "_previous_versions/**"
- "templates/**"
- "vendor/**"
- "_site/**"
- "node_modules/**"
# CDC boilerplate — these files are mandated by the CDC org and must not be
# modified. Linting them would produce violations we are not permitted to fix.
- "CDCgov_README.md"
- "code-of-conduct.md"
- "DISCLAIMER.md"
- "open_practices.md"
- "rules_of_behavior.md"
# Contributor docs — these files follow different formatting conventions
# (e.g., tables, code examples, mixed prose) and are reviewed manually through
# the code review process rather than automated lint.
- "CONTRIBUTING.md"
- "WORKFLOW.md"
- "README.md"