File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 245245 'nbdev.quarto._nbglob_docs' : ('api/quarto.html#_nbglob_docs' , 'nbdev/quarto.py' ),
246246 'nbdev.quarto._pre' : ('api/quarto.html#_pre' , 'nbdev/quarto.py' ),
247247 'nbdev.quarto._pre_docs' : ('api/quarto.html#_pre_docs' , 'nbdev/quarto.py' ),
248- 'nbdev.quarto._readme_not_out_of_date ' : ('api/quarto.html#_readme_not_out_of_date ' , 'nbdev/quarto.py' ),
248+ 'nbdev.quarto._readme_mtime_not_older ' : ('api/quarto.html#_readme_mtime_not_older ' , 'nbdev/quarto.py' ),
249249 'nbdev.quarto._save_cached_readme' : ('api/quarto.html#_save_cached_readme' , 'nbdev/quarto.py' ),
250250 'nbdev.quarto._sort' : ('api/quarto.html#_sort' , 'nbdev/quarto.py' ),
251251 'nbdev.quarto._sprun' : ('api/quarto.html#_sprun' , 'nbdev/quarto.py' ),
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ def nbdev_proc_nbs(**kwargs):
182182 _pre_docs (** kwargs )[0 ]
183183
184184# %% ../nbs/api/14_quarto.ipynb 21
185- def _readme_not_out_of_date (readme_path , readme_nb_path ):
185+ def _readme_mtime_not_older (readme_path , readme_nb_path ):
186186 if not readme_nb_path .exists ():
187187 print (f"Could not find { readme_nb_path } " )
188188 return True
@@ -226,7 +226,7 @@ def nbdev_readme(
226226 chk_time :bool = False ): # Only build if out of date
227227 cfg = get_config ()
228228 path = Path (path ) if path else cfg .nbs_path
229- if chk_time and _readme_not_out_of_date (cfg .config_path / 'README.md' , path / cfg .readme_nb ): return
229+ if chk_time and _readme_mtime_not_older (cfg .config_path / 'README.md' , path / cfg .readme_nb ): return
230230
231231 with _SidebarYmlRemoved (path ): # to avoid rendering whole website
232232 cache = proc_nbs (path )
Original file line number Diff line number Diff line change 366366 "outputs" : [],
367367 "source" : [
368368 " #|export\n " ,
369- " def _readme_not_out_of_date (readme_path, readme_nb_path):\n " ,
369+ " def _readme_mtime_not_older (readme_path, readme_nb_path):\n " ,
370370 " if not readme_nb_path.exists():\n " ,
371371 " print(f\" Could not find {readme_nb_path}\" )\n " ,
372372 " return True\n " ,
443443 " chk_time:bool=False): # Only build if out of date\n " ,
444444 " cfg = get_config()\n " ,
445445 " path = Path(path) if path else cfg.nbs_path\n " ,
446- " if chk_time and _readme_not_out_of_date (cfg.config_path/'README.md', path/cfg.readme_nb): return\n " ,
446+ " if chk_time and _readme_mtime_not_older (cfg.config_path/'README.md', path/cfg.readme_nb): return\n " ,
447447 " \n " ,
448448 " with _SidebarYmlRemoved(path): # to avoid rendering whole website\n " ,
449449 " cache = proc_nbs(path)\n " ,
You can’t perform that action at this time.
0 commit comments