From aa35300979a9844773beeb27f0ea1d89f6a5183c Mon Sep 17 00:00:00 2001 From: JK Date: Fri, 30 Jan 2026 00:42:36 +0900 Subject: [PATCH] =?UTF-8?q?fix(confluence-mdx):=20--recent=20=EC=98=B5?= =?UTF-8?q?=EC=85=98=20=EC=82=AC=EC=9A=A9=20=EC=8B=9C=20list.txt=EA=B0=80?= =?UTF-8?q?=20=EC=A0=84=EC=B2=B4=20=EB=AC=B8=EC=84=9C=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=EC=9D=84=20=ED=8F=AC=ED=95=A8=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --recent 모드에서 list.txt가 최근 수정된 페이지만 포함하던 버그를 수정합니다. 이제 pages.yaml과 동일하게 전체 문서 트리를 순회하여 list.txt를 생성합니다. Fixes #586 Co-Authored-By: Claude Opus 4.5 --- confluence-mdx/bin/pages_of_confluence.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/confluence-mdx/bin/pages_of_confluence.py b/confluence-mdx/bin/pages_of_confluence.py index 5fcd0288..d3ba9977 100755 --- a/confluence-mdx/bin/pages_of_confluence.py +++ b/confluence-mdx/bin/pages_of_confluence.py @@ -914,20 +914,20 @@ def run(self) -> None: continue # After downloading, process like local mode (hierarchical traversal from start_page_id) - # Generate pages.yaml with full hierarchical tree (like --local mode) + # Generate pages.yaml and list.txt with full hierarchical tree (like --local mode) # No stdout output in this phase (like --local mode) self.logger.warning(f"Processing page tree from start page ID {start_page_id} (local mode)") page_count = 0 yaml_entries = [] + list_lines = [] for page in self.fetch_page_tree_recursive(start_page_id, start_page_id, use_local=True): if page: + breadcrumbs_str = " />> ".join(page.breadcrumbs) if page.breadcrumbs else "" # No stdout output in local mode + list_lines.append(f"{page.page_id}\t{breadcrumbs_str}\n") page_count += 1 yaml_entries.append(page.to_dict()) - - # list.txt contains only downloaded pages - list_lines = downloaded_list_lines elif self.config.mode == "local": # --local mode: Process existing local files hierarchically from start_page_id