File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 99from sinol_make import util , oiejq
1010
1111
12- __version__ = "1.5.24 "
12+ __version__ = "1.5.25 "
1313
1414
1515def configure_parsers ():
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ def compile_file(self, file_path):
3434 print (util .info (f'Compilation successful for file { os .path .basename (file_path )} .' ))
3535 return True
3636
37+ def make_file (self , file_path ):
38+ """
39+ Compile the file two times to get the references right.
40+ """
41+ if not self .compile_file (file_path ):
42+ return False
43+ return self .compile_file (file_path )
44+
3745 def move_logs (self ):
3846 output_dir = paths .get_cache_path ('doc_logs' )
3947 os .makedirs (output_dir , exist_ok = True )
@@ -69,7 +77,7 @@ def run(self, args: argparse.Namespace):
6977 original_cwd = os .getcwd ()
7078 failed = []
7179 for file in self .files :
72- if not self .compile_file (file ):
80+ if not self .make_file (file ):
7381 failed .append (file )
7482 os .chdir (original_cwd )
7583
You can’t perform that action at this time.
0 commit comments