diff --git a/sphinxcontrib/confluencebuilder/builder.py b/sphinxcontrib/confluencebuilder/builder.py index 20815a9e..b8006f15 100644 --- a/sphinxcontrib/confluencebuilder/builder.py +++ b/sphinxcontrib/confluencebuilder/builder.py @@ -537,7 +537,7 @@ def publish_doc(self, docname, output): if self.post_cleanup and self.legacy_pages is None: if conf.confluence_publish_root: baseid = conf.confluence_publish_root - elif conf.confluence_cleanup_from_root and self.root_doc_page_id: + elif conf.confluence_cleanup_from_root: baseid = self.root_doc_page_id else: baseid = self.parent_id