Skip to content

Commit

Permalink
single_files could be empty string, empty list, or None - look for tr…
Browse files Browse the repository at this point in the history
…uthiness
  • Loading branch information
krzywon committed Sep 23, 2024
1 parent ffdcf6e commit fe87e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sas/sascalc/doc_regen/makedocumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def generate_html(single_files: Union[PATH_LIKE, list[PATH_LIKE]] = "", rst: boo
elif rst is False and isinstance(single_files, list):
# User has passed in a list of python pathnames: we need to pass in the corresponding .rst file
single_files = [MAIN_DOC_SRC / "user" / "models" / single_file.name.replace('.py', '.rst') for single_file in single_files]
elif single_files == "":
elif not single_files:
# User wants a complete regeneration of documentation
force_rebuild = "-E"
single_files = None
Expand Down

0 comments on commit fe87e08

Please sign in to comment.