Skip to content

Commit 9b215fb

Browse files
committed
Enhance documentation cleanup: add support for removing PDF files with lib name prefix
1 parent 3696f94 commit 9b215fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guidata/utils/cleanup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ def clean_documentation_files(project_root: Path, lib_name: str, mod_name: str)
283283
remove_if_exists(project_root / "doc" / "auto_examples")
284284
remove_if_exists(project_root / "doc" / "sg_execution_times.rst")
285285
remove_glob_pattern(f"{mod_name}/data/doc/{lib_name}*.pdf", project_root)
286+
first_part = lib_name.split("-")[0]
287+
remove_glob_pattern(f"{mod_name}/data/doc/{first_part}*.pdf", project_root)
286288

287289

288290
def clean_wix_installer_files(project_root: Path, lib_name: str, mod_name: str) -> None:

0 commit comments

Comments
 (0)