1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-01-10 21:31:49 +01:00

Added "relative_to_docs" value to absolute_links enum (#7812)

* Add `"relative_to_docs"` value to `absolute_links` enum

* refactor to use `oneOf`

---------

Co-authored-by: Jake Beazley <jake.beazley@johnlewis.co.uk>
This commit is contained in:
Bzly 2024-12-21 11:46:50 +00:00 committed by GitHub
parent 51e4d4b212
commit 7199342dd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,10 @@
},
"absolute_links": {
"title": "warning level when absolute links are used",
"$ref": "#/$defs/warning_levels"
"oneOf": [
{ "$ref": "#/$defs/warning_levels" },
{ "enum": ["relative_to_docs"] }
]
},
"unrecognized_links": {
"title": "warning level when a relative link cannot be resolved to a document",