diff --git a/sphinxcontrib/collections/collections.py b/sphinxcontrib/collections/collections.py index 3f8e980..2a2248a 100644 --- a/sphinxcontrib/collections/collections.py +++ b/sphinxcontrib/collections/collections.py @@ -81,9 +81,6 @@ def __init__(self, app, name, **kwargs): os.makedirs(collection_main_folder, exist_ok=True) target = os.path.join(collection_main_folder, target) - if not os.path.exists(os.path.dirname(target)): - os.makedirs(os.path.dirname(target), exist_ok=True) - self.target = target clean = kwargs.get("clean")