Skip to content

Commit

Permalink
Merge 191ef04 into 7e1350b
Browse files Browse the repository at this point in the history
  • Loading branch information
esantorella authored Feb 3, 2023
2 parents 7e1350b + 191ef04 commit 8fb12be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/validate_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ def validate_complete_sphinx(path_to_botorch: str) -> None:
# Verify that all top-level modules have a corresponding rst
missing_rsts = modules.difference(rsts)
if not len(missing_rsts) == 0:
raise RuntimeError(f"Not all modules have corresponding rst: {missing_rsts}")
raise RuntimeError(
f"""Not all modules have corresponding rst:
{missing_rsts}
Please add them to the appropriate rst file in {SPHINX_RST_PATH}.
"""
)

# Track all modules that are not in docs (so can print all)
modules_not_in_docs = []
Expand Down

0 comments on commit 8fb12be

Please sign in to comment.