Skip to content

Commit c1336ae

Browse files
authored
Added missing validation/links/anchors to validation.json schema (#7158)
1 parent 1c7e954 commit c1336ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/schema/validation.json

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"title": "Validation of links",
2323
"markdownDescription": "https://www.mkdocs.org/user-guide/configuration/#validation",
2424
"properties": {
25+
"anchors": { "$ref": "#/$defs/anchors" },
2526
"not_found": { "$ref": "#/$defs/not_found" },
2627
"absolute_links": { "$ref": "#/$defs/absolute_links" },
2728
"unrecognized_links": { "$ref": "#/$defs/unrecognized_links" }
@@ -47,6 +48,10 @@
4748
"title": "warning level when a relative link cannot be resolved to a document",
4849
"$ref": "#/$defs/warning_levels"
4950
},
51+
"anchors": {
52+
"title": "warning level when an #anchor does not exist on the linked document",
53+
"$ref": "#/$defs/warning_levels"
54+
},
5055
"warning_levels": {
5156
"enum": ["warn", "info", "ignore"]
5257
}

0 commit comments

Comments
 (0)