@@ -945,20 +945,16 @@ def get_compilation_time() -> str:
945
945
946
946
should_compile = self ._should_compile ()
947
947
948
- for route in self ._unevaluated_pages :
949
- console .debug (f"Evaluating page: { route } " )
950
- self ._compile_page (route , save_page = should_compile )
948
+ if not should_compile :
949
+ for route in self ._unevaluated_pages :
950
+ console .debug (f"Evaluating page: { route } " )
951
+ self ._compile_page (route , save_page = should_compile )
951
952
952
- # Add the optional endpoints (_upload)
953
- self ._add_optional_endpoints ()
953
+ # Add the optional endpoints (_upload)
954
+ self ._add_optional_endpoints ()
954
955
955
- if not should_compile :
956
956
return
957
957
958
- self ._validate_var_dependencies ()
959
- self ._setup_overlay_component ()
960
- self ._setup_error_boundary ()
961
-
962
958
# Create a progress bar.
963
959
progress = Progress (
964
960
* Progress .get_default_columns ()[:- 1 ],
@@ -967,16 +963,31 @@ def get_compilation_time() -> str:
967
963
)
968
964
969
965
# try to be somewhat accurate - but still not 100%
970
- adhoc_steps_without_executor = 6
966
+ adhoc_steps_without_executor = 7
971
967
fixed_pages_within_executor = 5
972
968
progress .start ()
973
969
task = progress .add_task (
974
970
f"[{ get_compilation_time ()} ] Compiling:" ,
975
971
total = len (self ._pages )
972
+ + (len (self ._unevaluated_pages ) * 2 )
976
973
+ fixed_pages_within_executor
977
974
+ adhoc_steps_without_executor ,
978
975
)
979
976
977
+ for route in self ._unevaluated_pages :
978
+ console .debug (f"Evaluating page: { route } " )
979
+ self ._compile_page (route , save_page = should_compile )
980
+ progress .advance (task )
981
+
982
+ # Add the optional endpoints (_upload)
983
+ self ._add_optional_endpoints ()
984
+
985
+ self ._validate_var_dependencies ()
986
+ self ._setup_overlay_component ()
987
+ self ._setup_error_boundary ()
988
+
989
+ progress .advance (task )
990
+
980
991
# Get the env mode.
981
992
config = get_config ()
982
993
0 commit comments