File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -360,9 +360,9 @@ def process_file(self, markdown_file_path):
360
360
with open (markdown_file_path , 'w' , encoding = 'utf8' ) as markdown_file :
361
361
markdown_file .write (processed_markdown_content )
362
362
363
- def process_all_files (self ):
363
+ def process_all_files (self , list_of_files ):
364
364
threads = []
365
- for markdown_file_path in self . working_dir . rglob ( '*.md' ) :
365
+ for markdown_file_path in list_of_files :
366
366
process_file_thread = threading .Thread (target = self .process_file ,
367
367
args = [markdown_file_path ])
368
368
process_file_thread .start ()
@@ -392,6 +392,9 @@ def apply(self):
392
392
f'User-specified path does not exist, trying to use the default one: { self .repo_path } ' )
393
393
394
394
self .repo_web_url = self ._get_repo_web_url ()
395
- self .process_all_files ()
395
+ if self .context ['only_partial' ]:
396
+ self .process_all_files (self .context ['only_partial' ])
397
+ else :
398
+ self .process_all_files (self .working_dir .rglob ('*.md' ))
396
399
397
400
self .logger .info ('Preprocessor applied' )
You can’t perform that action at this time.
0 commit comments