File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,12 +67,6 @@ def main():
6767 plugin_manager = PluginManager ()
6868 plugin_manager .load_plugins (script_dir )
6969
70- # Get target files (all generators use same files)
71- first_generator = plugin_manager .pipelines [0 ].generator
72- output_files = [
73- os .path .join (project_root , filename ) for filename in first_generator .default_filenames
74- ]
75-
7670 # Process each pipeline
7771 print ()
7872 for pipeline in plugin_manager .pipelines :
@@ -97,7 +91,12 @@ def main():
9791 # Generate content using pipeline's generator
9892 content = pipeline .generator .generate (grouped_rules , {})
9993
100- # Update all target files
94+ # Update target files for this generator
95+ output_files = [
96+ os .path .join (project_root , filename )
97+ for filename in pipeline .generator .default_filenames
98+ ]
99+
101100 for file_path in output_files :
102101 success , message = update_documentation_file (
103102 file_path , content , pipeline .generator .get_section_markers ()
You can’t perform that action at this time.
0 commit comments