Skip to content

Commit

Permalink
nixos-render-docs: don't validate redirects if non were given
Browse files Browse the repository at this point in the history
  • Loading branch information
GetPsyched committed Nov 21, 2024
1 parent d533f73 commit fb1e504
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ def validate(self, initial_xref_targets: dict[str, XrefTarget]):
- Identifiers must not be identical to any historical location's anchor of the same output path
- The first element of an identifier's redirects list must denote its current location.
"""
# Disable redirects validation if redirects were not provided
if not self._raw_redirects:
return

xref_targets = {}
ignored_identifier_patterns = ("opt-", "auto-generated-", "function-library-")
for id, target in initial_xref_targets.items():
Expand Down

0 comments on commit fb1e504

Please sign in to comment.