Skip to content

Commit

Permalink
Add option to raise error if file is not included in navigation
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Flynn <evan.flynn@apex.ai>
  • Loading branch information
evan-flynn-apexai committed May 9, 2023
1 parent d2bafac commit 98789fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mkdocs_literate_nav/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ def is_file_in_nav_file(f) -> bool:
or f not in files.documentation_pages()
):
return True
log.warning(f"File excluded from navigation file: {f.src_uri}")
return False

raise ValueError(f"File excluded from navigation file: {f.src_uri}")
self._files = [f for f in files if is_file_in_nav_file(f)]
else:
self._files = files
Expand Down

0 comments on commit 98789fd

Please sign in to comment.