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 9
9
from sinol_make import util , oiejq
10
10
11
11
12
- __version__ = "1.5.24 "
12
+ __version__ = "1.5.25 "
13
13
14
14
15
15
def configure_parsers ():
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ def compile_file(self, file_path):
34
34
print (util .info (f'Compilation successful for file { os .path .basename (file_path )} .' ))
35
35
return True
36
36
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
+
37
45
def move_logs (self ):
38
46
output_dir = paths .get_cache_path ('doc_logs' )
39
47
os .makedirs (output_dir , exist_ok = True )
@@ -69,7 +77,7 @@ def run(self, args: argparse.Namespace):
69
77
original_cwd = os .getcwd ()
70
78
failed = []
71
79
for file in self .files :
72
- if not self .compile_file (file ):
80
+ if not self .make_file (file ):
73
81
failed .append (file )
74
82
os .chdir (original_cwd )
75
83
You can’t perform that action at this time.
0 commit comments