Skip to content

Commit 05b2cb6

Browse files
committed
adjust logs
1 parent 568c38b commit 05b2cb6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

codewiki/src/be/documentation_generator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ async def generate_parent_module_docs(self, module_path: List[str],
203203
module_tree_path = os.path.join(working_dir, MODULE_TREE_FILENAME)
204204
module_tree = file_manager.load_json(module_tree_path)
205205

206+
# check if overview docs already exists
207+
overview_docs_path = os.path.join(working_dir, OVERVIEW_FILENAME)
208+
if os.path.exists(overview_docs_path):
209+
logger.info(f"Overview docs already exists at {overview_docs_path}")
210+
return module_tree
211+
206212
# check if parent docs already exists
207213
parent_docs_path = os.path.join(working_dir, f"{module_name if len(module_path) >= 1 else OVERVIEW_FILENAME.replace('.md', '')}.md")
208214
if os.path.exists(parent_docs_path):

0 commit comments

Comments
 (0)